Skip to content

Cache busting #194

Answered by mukaspc
dangelion asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dangelion

If you want provide global hash to files, just simply turn in ON (hash: true) for HTMLWebpackPluginmethod at the beginning of the webpack.config.js

Another way to deal with it is to add manualny generated hash for your output file name, for example:

Without hash app.js:
filename: 'js/[name].js'

With 6-char hash:
filename: 'js/[name].[hash:6].js'

Hope I helped you.
Best

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pnikolov
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #44 on October 16, 2023 11:38.