keithamus / npm-scripts-example

An example of how to use NPM scripts over Grunt/Gulp & Friends. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool
MIT License
841 stars 101 forks source link

using node-sass #19

Closed jonny-harte closed 9 years ago

jonny-harte commented 9 years ago

Hi,

how would you setup to use sass instead of stylus?

Thanks

keithamus commented 9 years ago

Hey @hartey11 thanks for the issue.

It should be pretty easy to switch over to node-sass, at the moment the build:styles command has the following inside of it:

stylus assets/styles/main.styl -m -o dist/

To do the same in Node Sass, we can look at the binary usage docs and we get almost the same command back:

node-sass assets/styles/main.scss --source-map -o dist/

Then it's just a case of simply swapping the dependencies around. I'll leave the rest to you :smile: