Skip to content

Commit

Permalink
Enable futureEmitAssets in webpack config (#6696)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Apr 4, 2019
1 parent bf7d1c4 commit 001c23e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Expand Up @@ -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'
Expand Down

0 comments on commit 001c23e

Please sign in to comment.