html-compression-webpack-plugin
Advanced tools
Comparing version 0.2.0 to 0.2.2
@@ -42,3 +42,3 @@ /* | ||
this.compressionOptions = { | ||
level: options.level || 9, | ||
level: options.hasOwnProperty('level') ? options.level : 9, | ||
flush: options.flush, | ||
@@ -56,4 +56,4 @@ chunkSize: options.chunkSize, | ||
this.threshold = options.threshold || 0; | ||
this.minRatio = options.minRatio || 0.8; | ||
this.deleteOriginals = options.deleteOriginals || true | ||
this.minRatio = options.hasOwnProperty('minRatio') ? options.minRatio : 0.8; | ||
this.deleteOriginals = options.hasOwnProperty('deleteOriginals') ? options.deleteOriginals : true; | ||
this.assetsRelativeOutputDirectory = options.assetsRelativeOutputDirectory | ||
@@ -60,0 +60,0 @@ this.originalAssetsPaths = new Array(); |
{ | ||
"name": "html-compression-webpack-plugin", | ||
"version": "0.2.0", | ||
"version": "0.2.2", | ||
"author": "Tobias Koppers @sokra & Tom De Backer @TomDeBacker", | ||
@@ -5,0 +5,0 @@ "description": "Prepare compressed versions of assets to serve them with Content-Encoding.", |
# HTML compression plugin for webpack | ||
## Version 0.2.* doesn't work properly for me. Use 0.2.0 instead if you experience the same. | ||
## Info | ||
@@ -52,2 +52,2 @@ | ||
MIT (http://www.opensource.org/licenses/mit-license.php) | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
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
8440
53