José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | 4 년 전 | |
---|---|---|
.. | ||
node_modules | 4 년 전 | |
tasks | 4 년 전 | |
LICENSE-MIT | 4 년 전 | |
README.md | 4 년 전 | |
package.json | 4 년 전 |
Compress CSS files.
This plugin requires Grunt ~0.4.1
If you haven’t used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you’re familiar with that process, you may install this plugin with this command:
npm install grunt-contrib-cssmin --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-contrib-cssmin');
This plugin was designed to work with Grunt 0.4.x. If you’re still using grunt v0.3.x it’s strongly recommended that you upgrade, but in case you can’t please use v0.3.2.
Run this task with the grunt cssmin
command.
Task targets, files and options may be specified according to the grunt Configuring tasks guide.
Files are compressed with clean-css.
Type: String
Default: null
Prefix the compressed source with the given banner, with a linebreak inbetween.
Type: String
Number
Default: '*'
To keep or remove special comments, exposing the underlying option from clean-css. '*'
for keeping all (default), 1
for keeping first one, 0
for removing all.
Choices: 'min'
, 'gzip'
Default: 'min'
Either report only minification result or report minification and gzip results.
This is useful to see exactly how well clean-css is performing but using 'gzip'
will make the task take 5-10x longer to complete. Example output.
cssmin: {
combine: {
files: {
'path/to/output.css': ['path/to/input_one.css', 'path/to/input_two.css']
}
}
}
cssmin: {
add_banner: {
options: {
banner: '/* My minified css file */'
},
files: {
'path/to/output.css': ['path/to/**/*.css']
}
}
}
.min.css
extensioncssmin: {
minify: {
expand: true,
cwd: 'release/css/',
src: ['*.css', '!*.min.css'],
dest: 'release/css/',
ext: '.min.css'
}
}
false
choice from report
.Task submitted by Tim Branyen
This file was generated on Wed Jun 11 2014 23:05:14.