Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Conversation

@tlunter
Copy link

@tlunter tlunter commented Mar 25, 2020

The webpack public path can contain a [hash] variable to be interpolated.

HtmlWebpackPlugin interpolates it this way: https://github.com/jantimon/html-webpack-plugin/blob/master/index.js#L560
Using getAssetPath instead we can pass the path and also interpolate the given publicPath: https://github.com/webpack/webpack/blob/v4.42.1/lib/MainTemplate.js#L520-L522

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant