mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-15 05:31:02 -05:00
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., https://github.com/webpack/webpack-dev-server/issues/377#issuecomment-241258405). But to mitigate the Safari caching issue, hashes cannot be omitted. So move them to query parameters to see if this works.
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = (api, options) => {
|
||||
.end()
|
||||
.output
|
||||
.path(api.resolve(options.outputDir))
|
||||
.filename(isLegacyBundle ? '[name]-legacy.[hash:8].js' : '[name].[hash:8].js')
|
||||
.filename(isLegacyBundle ? '[name]-legacy.js?[hash:8]' : '[name].js?[hash:8]')
|
||||
.publicPath(options.baseUrl)
|
||||
|
||||
webpackConfig.resolve
|
||||
|
||||
Reference in New Issue
Block a user