html-webpack-plugin
Advanced tools
Comparing version 5.0.0-beta.2 to 5.0.0-beta.3
@@ -1,5 +0,12 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
### [4.5.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.5.0...v4.5.1) (2021-01-03) | ||
### Bug Fixes | ||
* inject javascripts in the <head> tag for inject:true and scriptLoading:'defer' ([4f7064e](https://github.com/jantimon/html-webpack-plugin/commit/4f7064ee56fe710e8f416018956647a72c270fb1)) | ||
# [4.5.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.1...v4.5.0) (2020-09-21) | ||
@@ -6,0 +13,0 @@ |
@@ -25,2 +25,3 @@ // @ts-check | ||
const getHtmlWebpackPluginHooks = require('./lib/hooks.js').getHtmlWebpackPluginHooks; | ||
const { assert } = require('console'); | ||
@@ -73,2 +74,6 @@ const fsReadFileAsync = promisify(fs.readFile); | ||
// Assert correct option spelling | ||
assert(options.scriptLoading === 'defer' || options.scriptLoading === 'blocking', 'scriptLoading needs to be set to "defer" or "blocking'); | ||
assert(options.inject === true || options.inject === false || options.inject === 'head' || options.inject === 'body', 'inject needs to be set to true, false, "head" or "body'); | ||
// Default metaOptions if no template is provided | ||
@@ -565,4 +570,4 @@ if (!userOptions.template && options.templateContent === false && options.meta) { | ||
// Webpack 5 introduced "auto" - however it can not be retrieved at compile time | ||
const isPublicPathDefined = webpackPublicPath.trim() !== '' && webpackPublicPath !== 'auto'; | ||
// Webpack 5 introduced "auto" as default value | ||
const isPublicPathDefined = webpackPublicPath !== 'auto'; | ||
@@ -569,0 +574,0 @@ let publicPath = |
{ | ||
"name": "html-webpack-plugin", | ||
"version": "5.0.0-beta.2", | ||
"version": "5.0.0-beta.3", | ||
"license": "MIT", | ||
@@ -33,9 +33,8 @@ "description": "Simplifies creation of HTML files to serve your webpack bundles", | ||
"@types/node": "11.13.9", | ||
"appcache-webpack-plugin": "1.4.0", | ||
"commitizen": "4.2.1", | ||
"css-loader": "2.1.1", | ||
"css-loader": "5.0.1", | ||
"cz-conventional-changelog": "2.1.0", | ||
"dir-compare": "1.7.2", | ||
"file-loader": "3.0.1", | ||
"html-loader": "0.5.5", | ||
"file-loader": "6.2.0", | ||
"html-loader": "1.3.2", | ||
"jest": "26.5.3", | ||
@@ -48,5 +47,5 @@ "mini-css-extract-plugin": "1.0.0", | ||
"semistandard": "^13.0.1", | ||
"standard-version": "9.0.0", | ||
"style-loader": "0.23.1", | ||
"typescript": "4.0.5", | ||
"standard-version": "9.1.0", | ||
"style-loader": "2.0.0", | ||
"typescript": "4.1.3", | ||
"webpack": "5.10.0", | ||
@@ -53,0 +52,0 @@ "webpack-recompilation-simulator": "3.2.0", |
@@ -27,7 +27,7 @@ [![npm][npm]][npm-url] | ||
```bash | ||
npm i --save-dev html-webpack-plugin@next | ||
npm i --save-dev html-webpack-plugin | ||
``` | ||
```bash | ||
yarn add --dev html-webpack-plugin@next | ||
yarn add --dev html-webpack-plugin | ||
``` | ||
@@ -39,7 +39,7 @@ | ||
```bash | ||
npm i --save-dev html-webpack-plugin | ||
npm i --save-dev html-webpack-plugin@4 | ||
``` | ||
```bash | ||
yarn add --dev html-webpack-plugin | ||
yarn add --dev html-webpack-plugin@4 | ||
``` | ||
@@ -78,4 +78,3 @@ | ||
* [favicons-webpack-plugin](https://github.com/jantimon/favicons-webpack-plugin) which generates favicons and icons for iOS, Android and desktop browsers | ||
* [html-webpack-harddisk-plugin](https://github.com/jantimon/html-webpack-harddisk-plugin) can be used to always write to disk the html file, useful when webpack-dev-server / HMR are being used | ||
* [html-webpack-inline-source-plugin](https://github.com/DustinJackson/html-webpack-inline-source-plugin) to inline your assets in the resulting HTML file | ||
* [html-webpack-harddisk-plugin](https://github.com/jantimon/html-webpack-harddisk-plugin) can be used to always write to disk the html file, useful when webpack-dev-server / HMR are being used | ||
* [html-webpack-inline-svg-plugin](https://github.com/thegc/html-webpack-inline-svg-plugin) to inline SVGs in the resulting HTML file. | ||
@@ -88,3 +87,2 @@ * [html-webpack-exclude-assets-plugin](https://github.com/jamesjieye/html-webpack-exclude-assets-plugin) for excluding assets using regular expressions | ||
* [link-media-html-webpack-plugin](https://github.com/yaycmyk/link-media-html-webpack-plugin) allows for injected stylesheet `<link />` tags to have their media attribute set automatically; useful for providing specific desktop/mobile/print etc. stylesheets that the browser will conditionally download | ||
* [inline-chunk-manifest-html-webpack-plugin](https://github.com/jouni-kantola/inline-chunk-manifest-html-webpack-plugin) for inlining webpack's chunk manifest. Default extracts manifest and inlines in `<head>` | ||
* [html-webpack-inline-style-plugin](https://github.com/djaax/html-webpack-inline-style-plugin) for inlining styles to HTML elements using [juice](https://github.com/Automattic/juice). Useful for email generation automatisation. | ||
@@ -91,0 +89,0 @@ * [html-webpack-exclude-empty-assets-plugin](https://github.com/KnisterPeter/html-webpack-exclude-empty-assets-plugin) removes empty assets from being added to the html. This fixes some problems with extract-text-plugin with webpack 4. |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
142710
21
2160
670