gulp-clean-css
Advanced tools
Comparing version 2.1.3 to 2.2.0
@@ -0,1 +1,8 @@ | ||
# 2.2.0 (12/08/2016) | ||
- remove vinyl-sourcemaps-apply in favor of clean-css sourcemap engine | ||
- bug fix #1 => https://github.com/scniro/gulp-clean-css/issues/1 | ||
- bug fix #7 => https://github.com/scniro/gulp-clean-css/issues/7 | ||
- bug fix #9 => https://github.com/scniro/gulp-clean-css/issues/9 | ||
# 2.1.3 (12/07/2016) | ||
@@ -2,0 +9,0 @@ |
18
index.js
@@ -1,2 +0,1 @@ | ||
const applySourceMap = require('vinyl-sourcemaps-apply'); | ||
const CleanCSS = require('clean-css'); | ||
@@ -30,10 +29,4 @@ const objectAssign = require('object-assign'); | ||
var cssFile; | ||
var style = file.contents ? file.contents.toString() : ''; | ||
//if (file.path) { | ||
// cssFile = {}; | ||
// cssFile[file.path] = {styles: style}; | ||
//} | ||
new CleanCSS(fileOptions).minify(style, function (errors, css) { | ||
@@ -44,13 +37,2 @@ | ||
if (css.sourceMap) { | ||
var map = JSON.parse(css.sourceMap); | ||
map.file = path.relative(file.base, file.path); | ||
map.sources = map.sources.map(function (src) { | ||
return path.relative(file.base, src); | ||
}); | ||
applySourceMap(file, map); | ||
} | ||
if (typeof callback === 'function') { | ||
@@ -57,0 +39,0 @@ var details = { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/scniro/gulp-clean-css#readme", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"author": "scniro", | ||
@@ -36,4 +36,3 @@ "license": "MIT", | ||
"object-assign": "^4.1.0", | ||
"through2": "^2.0.3", | ||
"vinyl-sourcemaps-apply": "^0.2.1" | ||
"through2": "^2.0.3" | ||
}, | ||
@@ -40,0 +39,0 @@ "devDependencies": { |
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
4
9460
40
- Removedvinyl-sourcemaps-apply@^0.2.1
- Removedsource-map@0.5.7(transitive)
- Removedvinyl-sourcemaps-apply@0.2.1(transitive)