grunt-contrib-cssmin
Advanced tools
Comparing version 0.10.0 to 0.11.0
{ | ||
"name": "grunt-contrib-cssmin", | ||
"description": "Compress CSS files.", | ||
"version": "0.10.0", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-cssmin", | ||
"description": "Minify CSS", | ||
"version": "0.11.0", | ||
"author": { | ||
@@ -10,9 +9,3 @@ "name": "Grunt Team", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/gruntjs/grunt-contrib-cssmin.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/gruntjs/grunt-contrib-cssmin/issues" | ||
}, | ||
"repository": "gruntjs/grunt-contrib-cssmin", | ||
"licenses": [ | ||
@@ -25,3 +18,3 @@ { | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">=0.10.0" | ||
}, | ||
@@ -32,19 +25,26 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "~0.4.0", | ||
"clean-css": "~2.2.0", | ||
"maxmin": "~0.2.0" | ||
"chalk": "^0.5.1", | ||
"clean-css": "^3.0.1", | ||
"maxmin": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-nodeunit": "~0.4.0", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-internal": "~0.4.6", | ||
"grunt": "~0.4.1" | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-contrib-internal": "^0.4.6", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-contrib-nodeunit": "^0.4.0" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
"grunt": ">=0.4.0" | ||
}, | ||
"keywords": [ | ||
"gruntplugin", | ||
"cssmin" | ||
"cssmin", | ||
"css", | ||
"style", | ||
"styles", | ||
"stylesheet", | ||
"minify", | ||
"compress" | ||
], | ||
@@ -51,0 +51,0 @@ "files": [ |
@@ -1,4 +0,4 @@ | ||
# grunt-contrib-cssmin v0.10.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin) <a href="https://ci.appveyor.com/project/gruntjs/grunt-contrib-cssmin"><img src="https://ci.appveyor.com/api/projects/status/ntgfqc3ppk533m84/branch/master" alt="Build Status: Windows" height="18" /></a> | ||
# grunt-contrib-cssmin v0.11.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ntgfqc3ppk533m84/branch/master)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-cssmin/branch/master) | ||
> Compress CSS files. | ||
> Minify CSS | ||
@@ -8,3 +8,3 @@ | ||
## Getting Started | ||
This plugin requires Grunt `~0.4.1` | ||
This plugin requires Grunt `>=0.4.0` | ||
@@ -23,3 +23,3 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
*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](http://gruntjs.com/upgrading-from-0.3-to-0.4), but in case you can't please use [v0.3.2](https://github.com/gruntjs/grunt-contrib-cssmin/tree/grunt-0.3-stable).* | ||
**Issues with the output should be reported on the clean-css [issue tracker](https://github.com/GoalSmashers/clean-css/issues).** | ||
@@ -31,29 +31,17 @@ | ||
Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide. | ||
Files are compressed with [clean-css](https://github.com/GoalSmashers/clean-css). | ||
### Options | ||
#### banner | ||
Options are passed to [clean-css](https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-programmatically). In addition this task defines an extra option: | ||
Type: `String` | ||
Default: `null` | ||
Prefix the compressed source with the given banner, with a linebreak inbetween. | ||
#### report | ||
#### keepSpecialComments | ||
Type: `String` `Number` | ||
Default: `'*'` | ||
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: `'min'`, `'gzip'` | ||
Default: `'min'` | ||
Either report only minification result or report minification and gzip results. | ||
Report minification result or both 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](https://github.com/sindresorhus/maxmin#readme). | ||
### Usage Examples | ||
### Usage | ||
@@ -64,5 +52,5 @@ #### Combine two files into one output file | ||
cssmin: { | ||
combine: { | ||
target: { | ||
files: { | ||
'path/to/output.css': ['path/to/input_one.css', 'path/to/input_two.css'] | ||
'output.css': ['foo.css', 'bar.css'] | ||
} | ||
@@ -73,25 +61,14 @@ } | ||
#### Add a banner | ||
```js | ||
cssmin: { | ||
add_banner: { | ||
options: { | ||
banner: '/* My minified css file */' | ||
}, | ||
files: { | ||
'path/to/output.css': ['path/to/**/*.css'] | ||
} | ||
} | ||
} | ||
``` | ||
#### Minify all contents of a release directory and add a `.min.css` extension | ||
#### Minify all contents of a release directory and add a `.min.css` extension | ||
```js | ||
cssmin: { | ||
minify: { | ||
expand: true, | ||
cwd: 'release/css/', | ||
src: ['*.css', '!*.min.css'], | ||
dest: 'release/css/', | ||
ext: '.min.css' | ||
target: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'release/css', | ||
src: ['*.css', '!*.min.css'], | ||
dest: 'release/css', | ||
ext: '.min.css' | ||
}] | ||
} | ||
@@ -104,2 +81,3 @@ } | ||
* 2014-12-24 v0.11.0 Bump `clean-css` to 3.0.1. Remove `banner` option. | ||
* 2014-06-11 v0.10.0 update clean-css v2.2.0 | ||
@@ -127,2 +105,2 @@ * 2014-02-01 v0.9.0 refactor. remove grunt-lib-contrib dependency. backwards-compatibly remove `false` choice from `report`. | ||
*This file was generated on Wed Jun 11 2014 23:05:14.* | ||
*This file was generated on Wed Dec 24 2014 14:59:14.* |
@@ -18,3 +18,3 @@ /* | ||
try { | ||
return new CleanCSS(options).minify(source); | ||
return new CleanCSS(options).minify(source).styles; | ||
} catch (err) { | ||
@@ -54,11 +54,7 @@ grunt.log.error(err); | ||
if (options.banner) { | ||
min = options.banner + grunt.util.linefeed + min; | ||
} | ||
grunt.file.write(file.dest, min); | ||
grunt.log.writeln('File ' + chalk.cyan(file.dest) + ' created: ' + maxmin(max, min, options.report === 'gzip')); | ||
grunt.verbose.writeln('File ' + chalk.cyan(file.dest) + ' created: ' + maxmin(max, min, options.report === 'gzip')); | ||
}); | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
7555
6
50
1
2
100
1
+ Addedamdefine@1.0.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.14.3.0(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarray-each@1.0.1(transitive)
+ Addedarray-find-index@1.0.2(transitive)
+ Addedarray-slice@1.1.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedchalk@1.1.34.1.2(transitive)
+ Addedclean-css@3.4.28(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolors@1.1.2(transitive)
+ Addedcommander@2.8.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddateformat@4.6.3(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddetect-file@1.0.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedexpand-tilde@2.0.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedfindup-sync@4.0.05.0.0(transitive)
+ Addedfined@1.2.0(transitive)
+ Addedflagged-respawn@1.0.1(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@1.0.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedgetobject@1.0.2(transitive)
+ Addedglob@7.1.7(transitive)
+ Addedglobal-modules@1.0.0(transitive)
+ Addedglobal-prefix@1.0.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedgrunt@1.6.1(transitive)
+ Addedgrunt-cli@1.4.3(transitive)
+ Addedgrunt-known-options@2.0.0(transitive)
+ Addedgrunt-legacy-log@3.0.0(transitive)
+ Addedgrunt-legacy-log-utils@2.1.0(transitive)
+ Addedgrunt-legacy-util@2.0.1(transitive)
+ Addedgzip-size@1.0.0(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedinterpret@1.1.0(transitive)
+ Addedis-absolute@1.0.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-relative@1.0.0(transitive)
+ Addedis-unc-path@1.0.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedliftup@3.0.1(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedmake-iterator@1.0.1(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmaxmin@1.1.0(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedminimatch@3.0.8(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednopt@3.0.64.0.3(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addedobject.defaults@1.1.0(transitive)
+ Addedobject.map@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedparse-filepath@1.0.2(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpretty-bytes@1.0.4(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedrechoir@0.7.1(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedresolve-dir@1.0.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsource-map@0.4.4(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsprintf-js@1.0.31.1.3(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedsupports-color@2.0.07.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtrim-newlines@1.0.0(transitive)
+ Addedunc-path-regex@0.1.2(transitive)
+ Addedunderscore.string@3.3.6(transitive)
+ Addedv8flags@3.2.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedwhich@1.3.12.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedansi-styles@1.0.0(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedchalk@0.4.0(transitive)
- Removedclean-css@2.2.23(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolors@0.6.2(transitive)
- Removedcommander@2.2.0(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removedesprima@1.0.4(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.213.2.11(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removedgzip-size@0.2.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedinherits@1.0.2(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedlodash@0.9.22.4.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedmaxmin@0.2.2(transitive)
- Removedminimatch@0.2.140.3.0(transitive)
- Removednopt@1.0.10(transitive)
- Removedpretty-bytes@0.1.2(transitive)
- Removedrimraf@2.2.8(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedstrip-ansi@0.1.1(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removedwhich@1.0.9(transitive)
Updatedchalk@^0.5.1
Updatedclean-css@^3.0.1
Updatedmaxmin@^1.0.0