grunt-sass
Version:
Compile Sass to CSS
53 lines (35 loc) • 1.13 kB
Markdown
using [Dart Sass][].
[ ]: http://sass-lang.com/dart-sass
Before filing an issue with this repository, please consider:
* Asking support questions on [Stack Overflow][].
* Reporting issues with the output on the [Dart Sass][Dart Sass issues] issue tracker.
* Reporting installation issues on the [Dart Sass][Dart Sass issues] issue tracker.
[ ]: https://stackoverflow.com/questions/tagged/sass
[ ]: https://github.com/sass/dart-sass/issues/new
```sh
npm install --save-dev grunt-sass sass
```
```js
const sass = require('sass');
require('load-grunt-tasks')(grunt);
grunt.initConfig({
sass: {
options: {
implementation: sass,
sourceMap: true
},
dist: {
files: {
'main.css': 'main.scss'
}
}
}
});
grunt.registerTask('default', ['sass']);
```
Files starting with `_` are ignored to match the expected [Sass partial behaviour](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#partials).
See the Sass [options](https://sass-lang.com/documentation/js-api/interfaces/options/).
> Compile Sass to CSS