Skip to content

Commit

Permalink
feat: provide public path to the alterAssetTags hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jan 20, 2021
1 parent 10d78de commit b754626
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ about which values are passed.
styles: Array<HtmlTagObject>,
meta: Array<HtmlTagObject>,
},
publicPath: string,
outputName: string,
plugin: HtmlWebpackPlugin
}>
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ function hookIntoCompiler (compiler, options, plugin) {
]
},
outputName: childCompilationOutputName,
publicPath: htmlPublicPath,
plugin: plugin
}))
.then(({ assetTags }) => {
Expand Down
1 change: 1 addition & 0 deletions lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const AsyncSeriesWaterfallHook = require('tapable').AsyncSeriesWaterfallHook;
styles: Array<HtmlTagObject>,
meta: Array<HtmlTagObject>,
},
publicPath: string,
outputName: string,
plugin: HtmlWebpackPlugin
}>,
Expand Down
1 change: 1 addition & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ declare namespace HtmlWebpackPlugin {
styles: HtmlTagObject[];
meta: HtmlTagObject[];
};
publicPath: string,
outputName: string;
plugin: HtmlWebpackPlugin;
}>;
Expand Down

0 comments on commit b754626

Please # to comment.