Socket
Socket
Sign inDemoInstall

grunt-contrib-cssmin

Package Overview
Dependencies
35
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 0.5.0

17

docs/cssmin-options.md

@@ -15,2 +15,17 @@ # Options

To keep or remove special comments, exposing the underlying option from [clean-css](https://github.com/GoalSmashers/clean-css).. `'*'` for keeping all (default), `1` for keeping first one, `0` for removing all.
To keep or remove special comments, exposing the underlying option from [clean-css](https://github.com/GoalSmashers/clean-css).. `'*'` for keeping all (default), `1` for keeping first one, `0` for removing all.
## report
Choices: `false`, `'min'`, `'gzip'`
Default: `false`
Either do not report anything, 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 ouput using `'gzip'`:
```
Original: 198444 bytes.
Minified: 101615 bytes.
Gzipped: 20084 bytes.
```

4

package.json
{
"name": "grunt-contrib-cssmin",
"description": "Compress CSS files.",
"version": "0.4.2",
"version": "0.5.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-cssmin",

@@ -32,3 +32,3 @@ "author": {

"clean-css": "~0.10.0",
"grunt-lib-contrib": "~0.5.1"
"grunt-lib-contrib": "~0.6.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {

@@ -47,2 +47,17 @@ # grunt-contrib-cssmin [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-cssmin.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-cssmin)

To keep or remove special comments, exposing the underlying option from [clean-css](https://github.com/GoalSmashers/clean-css).. `'*'` for keeping all (default), `1` for keeping first one, `0` for removing all.
#### report
Choices: `false`, `'min'`, `'gzip'`
Default: `false`
Either do not report anything, 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 ouput using `'gzip'`:
```
Original: 198444 bytes.
Minified: 101615 bytes.
Gzipped: 20084 bytes.
```
### Usage Examples

@@ -85,2 +100,2 @@

*This file was generated on Sun Mar 10 2013 19:09:35.*
*This file was generated on Thu Mar 14 2013 18:09:22.*

@@ -15,3 +15,5 @@ /*

grunt.registerMultiTask('cssmin', 'Minify CSS files', function() {
var options = this.options();
var options = this.options({
report: false
});
this.files.forEach(function(f) {

@@ -39,3 +41,5 @@ var max = f.src.filter(function(filepath) {

grunt.log.writeln('File ' + f.dest + ' created.');
helper.minMaxInfo(min, max);
if(options.report) {
helper.minMaxInfo(min, max, options.report);
}
}

@@ -42,0 +46,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc