gulp-clean-css
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,6 @@ | ||
## 2.0.3 (03/01/2016) | ||
- Include `name` and `path` in the clean callback | ||
- Improved testing and README docs | ||
## 2.0.2 (02/23/2016) | ||
@@ -2,0 +7,0 @@ |
@@ -72,3 +72,5 @@ var applySourceMap = require('vinyl-sourcemaps-apply'); | ||
'errors': css.errors, | ||
'warnings': css.warnings | ||
'warnings': css.warnings, | ||
'path': file.path, | ||
'name': file.path.split(file.base)[1] | ||
} | ||
@@ -75,0 +77,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/scniro/gulp-clean-css#readme", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": "scniro", | ||
@@ -42,5 +42,10 @@ "license": "MIT", | ||
"chai": "^3.5.0", | ||
"del": "^2.2.0", | ||
"gulp": "^3.9.1", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"mocha": "^2.4.5", | ||
"npm": "^3.7.5", | ||
"vinyl": "^1.1.1", | ||
@@ -47,0 +52,0 @@ "vinyl-buffer": "^1.0.0" |
@@ -42,3 +42,3 @@ # gulp-clean-css | ||
Useful for returning details from the underlying `minify()` call. An example use case include logging `stats` of the minified file. | ||
Useful for returning details from the underlying [`minify()`](https://github.com/jakubpawlowicz/clean-css#using-api) call. An example use case could include logging `stats` of the minified file. In addition to the default object, `gulp-clean-css` provides the file `name` and `path` for further analysis. | ||
@@ -52,4 +52,4 @@ ```javascript | ||
.pipe(cleanCSS({debug: true}, function(details) { | ||
console.log(details.stats.originalSize); | ||
console.log(details.stats.minifiedSize); | ||
console.log(details.name + ': ' + details.stats.originalSize); | ||
console.log(details.name + ': ' + details.stats.minifiedSize); | ||
})) | ||
@@ -56,0 +56,0 @@ .pipe(gulp.dest('dist')); |
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
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
9451
79
11