html-minimizer-webpack-plugin
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -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 @@ |
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
27875
372
359
+ Addedclean-css@5.3.3(transitive)
+ Addedcommander@8.3.0(transitive)
+ Addedhtml-minifier-terser@6.1.0(transitive)
- Removedclean-css@4.2.4(transitive)
- Removedcommander@4.1.1(transitive)
- Removedhtml-minifier-terser@5.1.1(transitive)
- Removedterser@4.8.1(transitive)
Updatedhtml-minifier-terser@^6.0.0
Updatedjest-worker@^27.0.6
Updatedschema-utils@^3.1.1