From 001c23eff47228125efd6f48fe62598d6f37aaf7 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Thu, 4 Apr 2019 14:35:48 -0600 Subject: [PATCH] Enable futureEmitAssets in webpack config (#6696) --- 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 c569868fdfa..49b77620bc6 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'