🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

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

to
5.0.6

7

package.json
{
"name": "optimize-css-assets-webpack-plugin",
"version": "5.0.5",
"version": "5.0.6",
"description": "A Webpack plugin to optimize \\ minimize CSS assets.",

@@ -33,5 +33,4 @@ "keywords": [

"dependencies": {
"cssnano": "^5.0.2",
"last-call-webpack-plugin": "^3.0.0",
"postcss": "^8.2.1"
"cssnano": "^4.1.10",
"last-call-webpack-plugin": "^3.0.0"
},

@@ -38,0 +37,0 @@ "devDependencies": {

@@ -5,9 +5,2 @@ const url = require('url');

function getDefaultProcessor() {
const postcss = require('postcss');
const cssnano = require('cssnano');
return postcss([cssnano()]);
}
class OptimizeCssAssetsWebpackPlugin extends LastCallWebpackPlugin {

@@ -31,3 +24,3 @@ constructor(options) {

this.options.cssProcessor = !options || !options.cssProcessor ?
getDefaultProcessor() :
require('cssnano') :
options.cssProcessor;

@@ -34,0 +27,0 @@ this.options.cssProcessorOptions = !options || options.cssProcessorOptions === undefined ?

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet