Socket
Socket
Sign inDemoInstall

optimize-css-assets-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimize-css-assets-webpack-plugin - npm Package Compare versions

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 @@

14

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc