Skip to content

gobblejs/gobble-sass-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobble-sass-all

Compile all SASS files with gobble.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-sass-all

Usage

var 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.

License

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.


About

Compile all SASS files with gobble

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •