Skip to content

Commit b754626

Browse files
committed
feat: provide public path to the alterAssetTags hook
1 parent 10d78de commit b754626

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
@@ -519,6 +519,7 @@ about which values are passed.
519519
styles: Array<HtmlTagObject>,
520520
meta: Array<HtmlTagObject>,
521521
},
522+
publicPath: string,
522523
outputName: string,
523524
plugin: HtmlWebpackPlugin
524525
}>

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ function hookIntoCompiler (compiler, options, plugin) {
298298
]
299299
},
300300
outputName: childCompilationOutputName,
301+
publicPath: htmlPublicPath,
301302
plugin: plugin
302303
}))
303304
.then(({ assetTags }) => {

lib/hooks.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const AsyncSeriesWaterfallHook = require('tapable').AsyncSeriesWaterfallHook;
3232
styles: Array<HtmlTagObject>,
3333
meta: Array<HtmlTagObject>,
3434
},
35+
publicPath: string,
3536
outputName: string,
3637
plugin: HtmlWebpackPlugin
3738
}>,

typings.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ declare namespace HtmlWebpackPlugin {
209209
styles: HtmlTagObject[];
210210
meta: HtmlTagObject[];
211211
};
212+
publicPath: string,
212213
outputName: string;
213214
plugin: HtmlWebpackPlugin;
214215
}>;

0 commit comments

Comments
 (0)