html-webpack-plugin
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
@@ -300,3 +300,3 @@ // @ts-check | ||
const scriptTarget = options.inject === 'head' || | ||
(options.inject === false && options.scriptLoading !== 'blocking') ? 'head' : 'body'; | ||
(options.inject !== 'body' && options.scriptLoading !== 'blocking') ? 'head' : 'body'; | ||
// Group assets to `head` and `body` tag arrays | ||
@@ -303,0 +303,0 @@ const assetGroups = generateAssetGroups(assetTags, scriptTarget); |
{ | ||
"name": "html-webpack-plugin", | ||
"version": "5.0.0-beta.1", | ||
"version": "5.0.0-beta.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Simplifies creation of HTML files to serve your webpack bundles", |
@@ -151,3 +151,3 @@ [![npm][npm]][npm-url] | ||
|**`templateParameters`**|`{Boolean\|Object\|Function}`| `false`| Allows to overwrite the parameters used in the template - see [example](https://github.com/jantimon/html-webpack-plugin/tree/master/examples/template-parameters) | | ||
|**`inject`**|`{Boolean\|String}`|`true`|`true \|\| 'head' \|\| 'body' \|\| false` Inject all assets into the given `template` or `templateContent`. When passing `true` or `'body'` all javascript resources will be placed at the bottom of the body element. `'head'` will place the scripts in the head element - see the [inject:false example](https://github.com/jantimon/html-webpack-plugin/tree/master/examples/custom-insertion-position)| | ||
|**`inject`**|`{Boolean\|String}`|`true`|`true \|\| 'head' \|\| 'body' \|\| false` Inject all assets into the given `template` or `templateContent`. When passing `'body'` all javascript resources will be placed at the bottom of the body element. `'head'` will place the scripts in the head element. Passing `true` will add it to the head/body depending on the `scriptLoading` option. Passing `false` will disable automatic injections. - see the [inject:false example](https://github.com/jantimon/html-webpack-plugin/tree/master/examples/custom-insertion-position)| | ||
|**`publicPath`**|`{String\|'auto'}`|`'auto'`|The publicPath used for script and link tags| | ||
@@ -154,0 +154,0 @@ |**`scriptLoading`**|`{'blocking'\|'defer'}`|`'blocking'`| Modern browsers support non blocking javascript loading (`'defer'`) to improve the page startup performance. | |
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
142478