$ cnpm install grunt-contrib-mincss

Compress CSS files.
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-contrib-mincss
Then add this line to your project's grunt.js gruntfile:
grunt.loadNpmTasks('grunt-contrib-mincss');
Inside your grunt.js file, add a section named mincss. This section specifies the files to compress with clean-css.
objectThis defines what files this task will process and should contain key:value pairs.
The key (destination) should be an unique filepath (supports grunt.template) and the value (source) should be a filepath or an array of filepaths (supports minimatch).
Note: When the value contains an array of multiple filepaths, the contents are concatenated in the order passed.
mincss: {
compress: {
files: {
"path/to/output.css": ["path/to/input_one.css", "path/to/input_two.css"]
}
}
}
--
Task submitted by Tim Branyen.
Copyright 2013 - present © cnpmjs.org | Home |