Skip to content

Commit 52dbdf8

Browse files
committed
chore: move the hash part in filename to query parameters (dev mode)
Development builts with HMR enabled have a bunch of problems with hashes in filenames (e.g., webpack/webpack-dev-server#377 (comment)). But to mitigate the Safari caching issue, hashes cannot be omitted. So move them to query parameters to see if this works.
1 parent d0320eb commit 52dbdf8

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/config/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = (api, options) => {
3333
.end()
3434
.output
3535
.path(api.resolve(options.outputDir))
36-
.filename(isLegacyBundle ? '[name]-legacy.[hash:8].js' : '[name].[hash:8].js')
36+
.filename(isLegacyBundle ? '[name]-legacy.js?[hash:8]' : '[name].js?[hash:8]')
3737
.publicPath(options.baseUrl)
3838

3939
webpackConfig.resolve

0 commit comments

Comments
 (0)