Skip to content

Commit d0ab774

Browse files
committed
feat: provide public path to the alterAssetTagGroups hook
1 parent 5200ae6 commit d0ab774

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ about which values are passed.
533533
AsyncSeriesWaterfallHook<{
534534
headTags: Array<HtmlTagObject | HtmlTagObject>,
535535
bodyTags: Array<HtmlTagObject | HtmlTagObject>,
536+
publicPath: string,
536537
outputName: string,
537538
plugin: HtmlWebpackPlugin
538539
}>

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ function hookIntoCompiler (compiler, options, plugin) {
312312
headTags: assetGroups.headTags,
313313
bodyTags: assetGroups.bodyTags,
314314
outputName: childCompilationOutputName,
315+
publicPath: htmlPublicPath,
315316
plugin: plugin
316317
});
317318
});

lib/hooks.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const AsyncSeriesWaterfallHook = require('tapable').AsyncSeriesWaterfallHook;
4040
AsyncSeriesWaterfallHook<{
4141
headTags: Array<HtmlTagObject | HtmlTagObject>,
4242
bodyTags: Array<HtmlTagObject | HtmlTagObject>,
43+
publicPath: string,
4344
outputName: string,
4445
plugin: HtmlWebpackPlugin
4546
}>,

typings.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ declare namespace HtmlWebpackPlugin {
218218
headTags: HtmlTagObject[];
219219
bodyTags: HtmlTagObject[];
220220
outputName: string;
221+
publicPath: string,
221222
plugin: HtmlWebpackPlugin;
222223
}>;
223224

0 commit comments

Comments
 (0)