Minify CSS
JavaScript CSS
Latest commit 3d14bfb Apr 8, 2016 @sindresorhus meta tweaks
Permalink
Failed to load latest commit information.
tasks tweaks Apr 6, 2016
test init Apr 15, 2015
.editorconfig tweaks Apr 6, 2016
.gitattributes init Apr 15, 2015
.gitignore init Apr 15, 2015
.travis.yml tweaks Apr 6, 2016
gruntfile.js meta tweaks Apr 8, 2016
license init Apr 15, 2015
package.json add XO Apr 6, 2016
readme.md tweaks Apr 6, 2016

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