Override chunk names
This commit is contained in:
parent
bfa9127da8
commit
3d26358086
|
|
@ -3,5 +3,9 @@ module.exports = function override(config, env) {
|
||||||
? 'static/js/[name].[contenthash].js'
|
? 'static/js/[name].[contenthash].js'
|
||||||
: env === 'development' && 'static/js/bundle.js';
|
: env === 'development' && 'static/js/bundle.js';
|
||||||
|
|
||||||
|
config.output.chunkFilename = env === 'production'
|
||||||
|
? 'static/js/[name].[contenthash].chunk.js'
|
||||||
|
: env === 'development' && 'static/js/[name].chunk.js';
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue