gulp-clean-css
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -0,1 +1,6 @@ | ||
# 2.3.0 (12/12/2016) | ||
- bug fix #21 => https://github.com/scniro/gulp-clean-css/issues/21 | ||
- adding back vinyl-sourcemaps-apply | ||
# 2.2.2 (12/12/2016) | ||
@@ -2,0 +7,0 @@ |
12
index.js
@@ -0,1 +1,2 @@ | ||
const applySourceMap = require('vinyl-sourcemaps-apply'); | ||
const CleanCSS = require('clean-css'); | ||
@@ -56,2 +57,13 @@ const objectAssign = require('object-assign'); | ||
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, file.path) | ||
}); | ||
applySourceMap(file, map); | ||
} | ||
cb(null, file); | ||
@@ -58,0 +70,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/scniro/gulp-clean-css#readme", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"author": "scniro", | ||
@@ -36,3 +36,4 @@ "license": "MIT", | ||
"object-assign": "^4.1.0", | ||
"through2": "^2.0.3" | ||
"through2": "^2.0.3", | ||
"vinyl-sourcemaps-apply": "^0.2.1" | ||
}, | ||
@@ -39,0 +40,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
10206
51
5
+ Addedsource-map@0.5.7(transitive)
+ Addedvinyl-sourcemaps-apply@0.2.1(transitive)