Socket
Socket
Sign inDemoInstall

html-compression-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-compression-webpack-plugin - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

6

index.js

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