Minify CSS
JavaScript CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
test
.editorconfig
.gitattributes
.gitignore
.travis.yml
gruntfile.js
license
package.json
readme.md

readme.md

grunt-cssnano Build Status

Minify CSS using cssnano

Issues with the output should be reported on the cssnano issue tracker.

Install

$ npm install --save-dev grunt-cssnano

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	cssnano: {
		options: {
			sourcemap: true
		},
		dist: {
			files: {
				'dist/app.css': 'src/app.css'
			}
		}
	}
});

grunt.registerTask('default', ['cssnano']);

Options

See the cssnano options.

License

MIT © Sindre Sorhus