mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
misc: don't use [name] for production assets
This commit is contained in:
parent
00ef16d6dd
commit
419d994a95
@ -54,6 +54,11 @@ export default class WebpackBaseConfig {
|
|||||||
fileName = fileName.replace(/\[(chunkhash|contenthash|hash)\]\./g, '')
|
fileName = fileName.replace(/\[(chunkhash|contenthash|hash)\]\./g, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't use [name] for production assets
|
||||||
|
if (!this.options.dev) {
|
||||||
|
fileName = fileName.replace(/\[name\]\./g, '')
|
||||||
|
}
|
||||||
|
|
||||||
return fileName
|
return fileName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user