Skip to content

sindresorhus/grunt-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4597cc7 · Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 3, 2018
May 18, 2018
Feb 3, 2018
Feb 3, 2018
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025

Repository files navigation

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.