Compile all SASS files with gobble.
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-sass-allvar gobble = require( 'gobble' );
module.exports = gobble( 'src/styles' ).transform( 'sass-all' );That will transform all *.sass and *.scss files in src/styles into *.css files.
Optionally, specify a second argument to pass options to node-sass, for example:
var gobble = require( 'gobble' );
module.exports = gobble( 'src/styles' ).transform( 'sass-all', {
indentedSyntax: true,
precision: 3,
sourceComments: true
});To omit sourcemap generation, set the node-sass' option omitSourceMapUrl to true.
MIT. Copyright 2015 Rich Harris
"THE BEER-WARE LICENSE": [email protected] wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.