Skip to content

Commit 001c23e

Browse files
authored
Enable futureEmitAssets in webpack config (#6696)
1 parent bf7d1c4 commit 001c23e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ module.exports = function(webpackEnv) {
163163
filename: isEnvProduction
164164
? 'static/js/[name].[contenthash:8].js'
165165
: isEnvDevelopment && 'static/js/bundle.js',
166+
// TODO: remove this when upgrading to webpack 5
167+
futureEmitAssets: true,
166168
// There are also additional JS chunk files if you use code splitting.
167169
chunkFilename: isEnvProduction
168170
? 'static/js/[name].[contenthash:8].chunk.js'

0 commit comments

Comments
 (0)