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

Interpolate hash in publicPath #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant