lucaconte 7cc26e831d presentations 6 éve
..
tasks 7cc26e831d presentations 6 éve
license 7cc26e831d presentations 6 éve
package.json 7cc26e831d presentations 6 éve
readme.md 7cc26e831d presentations 6 éve

readme.md

grunt-sass Build Status

Compile Sass to CSS using node-sass

The issue tracker is disabled because of continuous abuse. Use Stack Overflow for support questions. Issues with the output should be reported on the libsass issue tracker. Install issues should be reported on the node-sass issue tracker. Learn how semver works before opening a PR updating node-sass.

This task uses libsass, which is a Sass compiler in C++. It's a lot faster than the original Ruby compiler and fully compatible.


🔥 Want to strengthen your core JavaScript skills and master ES6?
I would personally recommend this awesome ES6 course by Wes Bos.


Install

$ npm install --save-dev grunt-sass

Usage

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

grunt.initConfig({
	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.

Options

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.

License

MIT © Sindre Sorhus