Coder Social home page Coder Social logo

statica's Introduction

How to rebuild node-sass for electron

The node-sass library needs to be rebuilt against the current version of Electron. This is somethingto keep in mind when updating Electron.

First clone the node-sass git repo and install dependencies:

git clone --recursive https://github.com/sass/node-sass.git
cd node-sass
npm install

Inside the node-sass directory run the following (update the --target flag with the version of electron that we are using, electron -v):

HOME=~/.electron-gyp ./node_modules/node-gyp/bin/node-gyp.js rebuild --target=1.6.13 --arch=x64 --dist-url=https://atom.io/download/atom-shell --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

The output will be inside build/Release/binding.node. Copy that file into our node_modules/node-sass/vendor/darwin-x64-49 folder. Not that the darwin-x64-49 name should match our environment. Electron will thrown an error stating which folder it is expecting the binding file, so look for that if you're not sure which environment we're running on.

Icons

Icons are from the Material Core Link: http://bit.ly/ZrkDJq

statica's People

Contributors

mdings avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.