image-minimizer-webpack-plugin
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -975,4 +975,11 @@ "use strict"; | ||
if (minimizerOptions.resize && (minimizerOptions.resize.width || minimizerOptions.resize.height) && minimizerOptions.resize.enabled !== false) { | ||
imagePipeline.resize(minimizerOptions.resize.width, minimizerOptions.resize.height); | ||
if (minimizerOptions.resize) { | ||
const { | ||
enabled = true, | ||
...params | ||
} = minimizerOptions.resize; | ||
if (enabled && (typeof params.width === "number" || typeof params.height === "number")) { | ||
imagePipeline.resize(params); | ||
} | ||
} // ====== convert ====== | ||
@@ -979,0 +986,0 @@ |
{ | ||
"name": "image-minimizer-webpack-plugin", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"description": "Webpack loader and plugin to optimize (compress) images using imagemin", | ||
@@ -5,0 +5,0 @@ "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
140975
2533