# grunt-sass

> Compile Sass to CSS

Latest version **4.1.0** (published 2026-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-sass
pnpm add grunt-sass
yarn add grunt-sass
bun add grunt-sass
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2026-02-02 |
| First published | 2012-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1014 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | gruntplugin, css, sass, scss, style, compile, preprocess, libsass |

## Links

- npm: https://www.npmjs.com/package/grunt-sass
- Repository: https://github.com/sindresorhus/grunt-sass
- Homepage: https://github.com/sindresorhus/grunt-sass#readme
- Issues: https://github.com/sindresorhus/grunt-sass/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/grunt-sass

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 4.1.0 (latest) — 2026-02-02
- 1.2.0-beta (beta) — 2016-02-04
- 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 — 2016-05-04
- 1.1.0 — 2015-10-25
- 1.1.0-beta — 2015-09-18
- 1.0.0 — 2015-05-06
- … 31 more at https://npm.io/package/grunt-sass/versions

## README

# grunt-sass

> Compile Sass to CSS using [Dart Sass][].

[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.

[Stack Overflow]: https://stackoverflow.com/questions/tagged/sass
[Dart Sass issues]: https://github.com/sass/dart-sass/issues/new

## Install

```sh
npm install --save-dev grunt-sass sass
```

## Usage

```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).

## Options

See the Sass [options](https://sass-lang.com/documentation/js-api/interfaces/options/).

---
_Source: https://npm.io/package/grunt-sass · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
