grunt-sass

Compile Sass to CSS

MIT 46 个版本
安装
npm install grunt-sass
yarn add grunt-sass
pnpm add grunt-sass
bun add grunt-sass
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.

版本列表
4.1.0 2026-02-02
4.0.1 2025-11-05
4.0.0 2025-02-07
3.1.0 2019-08-14
3.0.2 2018-10-09
3.0.1 2018-07-06
3.0.0 2018-06-27
2.1.0 2018-02-03
2.0.0 2016-12-10
1.2.1 2016-08-12
1.2.0-beta 2016-02-04
1.2.0 2016-05-04
1.1.0-beta 2015-09-18
1.1.0 2015-10-25
1.0.0 2015-05-06
0.18.1 2015-03-06
0.18.0 2015-02-13
0.17.0 2014-12-04
0.16.1 2014-10-31
0.16.0 2014-10-16
0.15.0 2014-10-13
0.14.2 2014-09-23
0.14.1 2014-09-01
0.14.0 2014-06-17
0.13.1 2014-06-06
0.13.0 2014-06-05
0.12.1 2014-03-31
0.12.0 2014-03-26
0.11.0 2014-02-23
0.10.0 2014-01-11
0.9.0 2013-12-08
0.8.1 2013-11-22
0.8.0 2013-11-01
0.7.0 2013-10-23
0.6.1 2013-08-02
0.6.0 2013-05-12
0.5.0 2013-04-30
0.4.1 2013-04-16
0.4.0 2013-04-06
0.3.0 2013-02-02
0.2.5 2012-12-02
0.2.4 2012-10-24
0.2.3 2012-10-24
0.2.2 2012-10-24
0.2.1 2012-09-24
0.1.0 2012-06-12