mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-03 12:14:57 +00:00
feat: allow force enabling name for splitChunks
This commit is contained in:
parent
4ce0669c6e
commit
1f9eed592f
@ -55,7 +55,7 @@ export default class WebpackBaseConfig {
|
||||
}
|
||||
|
||||
// Don't use [name] for production assets
|
||||
if (!this.options.dev) {
|
||||
if (!this.options.dev && this.options.build.optimization.splitChunks.name !== true) {
|
||||
fileName = fileName.replace(/\[name\]\./g, '')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user