Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-minimizer-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.1.1 to 3.2.0

7

dist/utils.js

@@ -32,7 +32,8 @@ "use strict";

const [[, input]] = Object.entries(data);
const result = await htmlMinifier.minify(input, { ...defaultMinimizerOptions,
...minimizerOptions
});
return {
code: htmlMinifier.minify(input, { ...defaultMinimizerOptions,
...minimizerOptions
})
code: result
};
} // eslint-disable-next-line import/prefer-default-export
{
"name": "html-minimizer-webpack-plugin",
"version": "3.1.1",
"version": "3.2.0",
"description": "html minimizer plugin for Webpack",

@@ -43,31 +43,31 @@ "license": "MIT",

"dependencies": {
"html-minifier-terser": "^5.1.1",
"jest-worker": "^27.0.2",
"html-minifier-terser": "^6.0.0",
"jest-worker": "^27.0.6",
"p-limit": "^3.1.0",
"schema-utils": "^3.0.0",
"schema-utils": "^3.1.1",
"serialize-javascript": "^6.0.0"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^27.0.5",
"copy-webpack-plugin": "^9.0.0",
"babel-jest": "^27.0.6",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"del-cli": "^4.0.0",
"eslint": "^7.29.0",
"del-cli": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"husky": "^6.0.0",
"jest": "^27.0.5",
"lint-staged": "^11.0.0",
"eslint-plugin-import": "^2.24.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"lint-staged": "^11.1.2",
"memfs": "^3.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.1",
"standard-version": "^9.3.0",
"webpack": "^5.40.0"
"prettier": "^2.3.2",
"standard-version": "^9.3.1",
"webpack": "^5.50.0"
},

@@ -74,0 +74,0 @@ "keywords": [

@@ -72,2 +72,11 @@ <div align="center">

| Name | Type | Default | Description |
| :-----------------------------------------: | :-------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------- |
| **[`test`](#test)** | `String\|RegExp\|Array<String\|RegExp>` | `/\.html(\?.*)?$/i` | Test to match files against. |
| **[`include`](#include)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to include. |
| **[`exclude`](#exclude)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to exclude. |
| **[`parallel`](#parallel)** | `Boolean\|Number` | `true` | Use multi-process parallel running to improve the build speed. |
| **[`minify`](#minify)** | `Function\|Array<Function>` | `HtmlMinimizerPlugin.htmlMinifierTerser` | Allows you to override default minify function. |
| **[`minimizerOptions`](#minimizerOptions)** | `Object\|Array<Object>` | `{ caseSensitive: true, collapseWhitespace: true, conservativeCollapse: true, keepClosingSlash: true, minifyCSS: true, minifyJS: true, removeComments: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, }` | `Html-minifier-terser` optimisations [options](https://github.com/terser/html-minifier-terser#options-quick-reference). |
### `test`

@@ -74,0 +83,0 @@

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