Skip to content

Commit

Permalink
feat: provide public path to the alterAssetTagGroups hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Feb 3, 2021
1 parent 5200ae6 commit d0ab774
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -533,6 +533,7 @@ about which values are passed.
AsyncSeriesWaterfallHook<{
headTags: Array<HtmlTagObject | HtmlTagObject>,
bodyTags: Array<HtmlTagObject | HtmlTagObject>,
publicPath: string,
outputName: string,
plugin: HtmlWebpackPlugin
}>
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -312,6 +312,7 @@ function hookIntoCompiler (compiler, options, plugin) {
headTags: assetGroups.headTags,
bodyTags: assetGroups.bodyTags,
outputName: childCompilationOutputName,
publicPath: htmlPublicPath,
plugin: plugin
});
});
Expand Down
1 change: 1 addition & 0 deletions lib/hooks.js
Expand Up @@ -40,6 +40,7 @@ const AsyncSeriesWaterfallHook = require('tapable').AsyncSeriesWaterfallHook;
AsyncSeriesWaterfallHook<{
headTags: Array<HtmlTagObject | HtmlTagObject>,
bodyTags: Array<HtmlTagObject | HtmlTagObject>,
publicPath: string,
outputName: string,
plugin: HtmlWebpackPlugin
}>,
Expand Down
1 change: 1 addition & 0 deletions typings.d.ts
Expand Up @@ -218,6 +218,7 @@ declare namespace HtmlWebpackPlugin {
headTags: HtmlTagObject[];
bodyTags: HtmlTagObject[];
outputName: string;
publicPath: string,
plugin: HtmlWebpackPlugin;
}>;

Expand Down

0 comments on commit d0ab774

Please sign in to comment.