Minify CSS using
cssnano
Issues with the output should be reported on the cssnano
issue tracker.
$ npm install --save-dev grunt-cssnano
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']);
See the cssnano
options.
MIT © Sindre Sorhus