Compile Sass to CSS using node-sass
Last updated 4 years ago by gkatsev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gkatsev-grunt-sass 
SYNC missed versions from official npm registry.

grunt-sass Build Status

Compile Sass to CSS using node-sass

Issues with the output should be reported on the libsass issue tracker.

This task uses libsass which is a Sass compiler in C++. In contrast to the original Ruby compiler, this one is much faster, but is missing some features, though improving quickly. It also doesn't support Compass. Check out grunt-contrib-sass if you prefer something more stable, but slower.


$ npm install --save-dev grunt-sass


require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

	sass: {
		options: {
			sourceMap: true
		dist: {
			files: {
				'main.css': 'main.scss'

grunt.registerTask('default', ['sass']);

Files starting with _ are ignored to match the expected Sass partial behaviour.


See the node-sass options, except for file, outFile, success, error.

The default value for the precision option is 10, so you don't have to change it when using Bootstrap.


MIT © Sindre Sorhus

Current Tags

  • 1.1.1                                ...           latest (4 years ago)

1 Versions

  • 1.1.1                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |