We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ebfc1 commit b984ee4Copy full SHA for b984ee4
packages/react-scripts/config/webpack.config.js
@@ -170,7 +170,10 @@ module.exports = function(webpackEnv) {
170
].filter(Boolean),
171
output: {
172
// The build folder.
173
- path: isEnvProduction ? paths.appBuild : undefined,
+ // Webpack 5 Change: We will never let this be set to `undefined`.
174
+ // TODO: Find out why this was previously conditional.
175
+ // See https://github.com/webpack/changelog-v5/blob/master/MIGRATION%20GUIDE.md#cleanup-configuration
176
+ path: paths.appBuild,
177
// Add /* filename */ comments to generated require()s in the output.
178
pathinfo: isEnvDevelopment,
179
// There will be one main bundle, and one file per asynchronous chunk.
0 commit comments