html-webpack-plugin
Advanced tools
Comparing version 5.0.0-beta.5 to 5.0.0-beta.6
@@ -301,2 +301,3 @@ // @ts-check | ||
outputName: childCompilationOutputName, | ||
publicPath: htmlPublicPath, | ||
plugin: plugin | ||
@@ -315,2 +316,3 @@ })) | ||
outputName: childCompilationOutputName, | ||
publicPath: htmlPublicPath, | ||
plugin: plugin | ||
@@ -720,2 +722,3 @@ }); | ||
voidTag: false, | ||
meta: { plugin: 'html-webpack-plugin' }, | ||
attributes: { | ||
@@ -737,2 +740,3 @@ defer: options.scriptLoading !== 'blocking', | ||
voidTag: true, | ||
meta: { plugin: 'html-webpack-plugin' }, | ||
attributes: { | ||
@@ -760,2 +764,3 @@ href: styleAsset, | ||
voidTag: true, | ||
meta: { plugin: 'html-webpack-plugin' }, | ||
attributes: (typeof baseOption === 'string') ? { | ||
@@ -803,2 +808,3 @@ href: baseOption | ||
voidTag: true, | ||
meta: { plugin: 'html-webpack-plugin' }, | ||
attributes: metaTagAttributes | ||
@@ -821,2 +827,3 @@ }; | ||
voidTag: true, | ||
meta: { plugin: 'html-webpack-plugin' }, | ||
attributes: { | ||
@@ -823,0 +830,0 @@ rel: 'icon', |
@@ -35,2 +35,3 @@ // @ts-check | ||
}, | ||
publicPath: string, | ||
outputName: string, | ||
@@ -43,2 +44,3 @@ plugin: HtmlWebpackPlugin | ||
bodyTags: Array<HtmlTagObject | HtmlTagObject>, | ||
publicPath: string, | ||
outputName: string, | ||
@@ -45,0 +47,0 @@ plugin: HtmlWebpackPlugin |
@@ -57,5 +57,8 @@ // @ts-check | ||
* | ||
* @param {{[attributeName: string]: string|boolean}} [meta] | ||
* meta information about the tag e.g. `{ 'pluhin': 'html-webpack-plugin' }` | ||
* | ||
* @returns {HtmlTagObject} | ||
*/ | ||
function createHtmlTagObject (tagName, attributes, innerHTML) { | ||
function createHtmlTagObject (tagName, attributes, innerHTML, meta) { | ||
return { | ||
@@ -65,2 +68,3 @@ tagName: tagName, | ||
attributes: attributes || {}, | ||
meta: meta || {}, | ||
innerHTML: innerHTML | ||
@@ -67,0 +71,0 @@ }; |
{ | ||
"name": "html-webpack-plugin", | ||
"version": "5.0.0-beta.5", | ||
"version": "5.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Simplifies creation of HTML files to serve your webpack bundles", |
@@ -522,2 +522,3 @@ [![npm][npm]][npm-url] | ||
}, | ||
publicPath: string, | ||
outputName: string, | ||
@@ -534,2 +535,3 @@ plugin: HtmlWebpackPlugin | ||
bodyTags: Array<HtmlTagObject | HtmlTagObject>, | ||
publicPath: string, | ||
outputName: string, | ||
@@ -671,3 +673,3 @@ plugin: HtmlWebpackPlugin | ||
[tests]: http://img.shields.io/travis/jantimon/html-webpack-plugin.svg | ||
[tests-url]: https://travis-ci.org/jantimon/html-webpack-plugin | ||
[tests]: https://github.com/jantimon/html-webpack-plugin/workflows/CI/badge.svg | ||
[tests-url]: https://github.com/jantimon/html-webpack-plugin/actions?query=workflow%3ACI |
@@ -212,2 +212,3 @@ import { AsyncSeriesWaterfallHook } from "tapable"; | ||
}; | ||
publicPath: string, | ||
outputName: string; | ||
@@ -221,2 +222,3 @@ plugin: HtmlWebpackPlugin; | ||
outputName: string; | ||
publicPath: string, | ||
plugin: HtmlWebpackPlugin; | ||
@@ -281,3 +283,11 @@ }>; | ||
voidTag: boolean; | ||
/** | ||
* Meta information about the tag | ||
* E.g. `{'plugin': 'html-webpack-plugin'}` | ||
*/ | ||
meta: { | ||
plugin?: string, | ||
[metaAttributeName: string]: any; | ||
}; | ||
} | ||
} |
143926
2191
673