JSPM

  • Created
  • Published
  • Downloads 168894
  • Score
    100M100P100Q159759F
  • License MIT

Compile Sass to CSS

Package Exports

  • grunt-sass/tasks/sass
  • grunt-sass/tasks/sass.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-sass) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

grunt-sass

Compile Sass to CSS using 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 issue tracker.

  • Reporting installation issues on the Dart Sass issue tracker.

Install

npm install --save-dev grunt-sass sass

Usage

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.

Options

See the Sass options.