From b807d69a89c56a3644447cf84ce214683a6d2987 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Wed, 20 Mar 2019 19:52:52 -0600 Subject: [PATCH] Enable futureEmitAssets in webpack config --- packages/react-scripts/config/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index c569868fdf..49b77620bc 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -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'