misc: don't use [name] for production assets

This commit is contained in:
Pooya Parsa 2018-03-23 12:52:05 +04:30
parent 00ef16d6dd
commit 419d994a95

View File

@ -54,6 +54,11 @@ export default class WebpackBaseConfig {
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
}