optimize-css-assets-webpack-plugin
Advanced tools
Comparing version 1.2.0 to 1.3.0
10
index.js
var _ = require('underscore'); | ||
var webpackSources = require('webpack-sources'); | ||
@@ -34,10 +35,3 @@ function OptimizeCssAssetsPlugin(options) { | ||
OptimizeCssAssetsPlugin.prototype.createCssAsset = function(css, originalAsset) { | ||
return { | ||
source: function() { | ||
return css; | ||
}, | ||
size: function() { | ||
return css.length; | ||
} | ||
}; | ||
return new webpackSources.RawSource(css); | ||
}; | ||
@@ -44,0 +38,0 @@ |
{ | ||
"name": "optimize-css-assets-webpack-plugin", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"author": "Nuno Rodrigues", | ||
@@ -8,3 +8,4 @@ "description": "A Webpack plugin to optimize \\ minimize CSS assets.", | ||
"cssnano": "^3.4.0", | ||
"underscore": "^1.8.3" | ||
"underscore": "^1.8.3", | ||
"webpack-sources": "^0.1.0" | ||
}, | ||
@@ -17,3 +18,12 @@ "main": "index.js", | ||
}, | ||
"keywords": [ | ||
"CSS", | ||
"minimize", | ||
"optimize", | ||
"webpack", | ||
"remove", | ||
"duplicate", | ||
"extract-text-webpack-plugin" | ||
], | ||
"license": "MIT" | ||
} |
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
6485
3
70
+ Addedwebpack-sources@^0.1.0
+ Addedsource-list-map@0.1.8(transitive)
+ Addedwebpack-sources@0.1.5(transitive)