Enable futureEmitAssets in webpack config (#6696)

This commit is contained in:
Ian Sutherland
2019-04-04 14:35:48 -06:00
committed by GitHub
parent bf7d1c4b3e
commit 001c23eff4

View File

@@ -163,6 +163,8 @@ module.exports = function(webpackEnv) {
filename: isEnvProduction
? 'static/js/[name].[contenthash:8].js'
: isEnvDevelopment && 'static/js/bundle.js',
// TODO: remove this when upgrading to webpack 5
futureEmitAssets: true,
// There are also additional JS chunk files if you use code splitting.
chunkFilename: isEnvProduction
? 'static/js/[name].[contenthash:8].chunk.js'