mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 20:08:41 -05:00
fix: add hash to filename in development mode (#2403)
to circumvent a Safari caching issue closes #2391, #1132
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = (api, options) => {
|
||||
.end()
|
||||
.output
|
||||
.path(api.resolve(options.outputDir))
|
||||
.filename(isLegacyBundle ? '[name]-legacy.js' : '[name].js')
|
||||
.filename(isLegacyBundle ? '[name]-legacy.[hash:8].js' : '[name].[hash:8].js')
|
||||
.publicPath(options.baseUrl)
|
||||
|
||||
webpackConfig.resolve
|
||||
|
||||
Reference in New Issue
Block a user