Grunt tasks to compile SASS:
Note that node-sass is currently under heavy development and might be unstable, there are also some stuff missing, like compression options and file/folder context, which means you need to specify @import using the relative path from your Gruntfile. You also need to include the extension
Uses the official Ruby based SASS compiler, which is stable, but also slow and has a Ruby dependency. Currently the recommended one to use in production. It also supports the old Sass syntax (.sass).
Install this grunt plugin next to your project's Gruntfile with:
npm install grunt-sass
Then add this line to your project's Gruntfile:
And add the tasks you want to
grunt.registerTask('default', 'lint sass'); // or `rubysass` // grunt.registerTask('default', 'lint rubysass');
Grunt currently doesn't have a way to test tasks directly. You can test this task by running
grunt and manually verify that it works.
In lieu of a formal styleguide, take care to maintain the existing coding style.
MIT License (c) Sindre Sorhus