From 3e612c762fd543a6182a4070b49762687c7f2831 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Sun, 30 Apr 2017 23:03:27 +0200 Subject: [PATCH 1/2] Define dev chunk names Fixes #2046 --- packages/react-scripts/config/webpack.config.dev.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 17dd38c962a..9fa7c1bdafa 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -71,6 +71,7 @@ module.exports = { // served by WebpackDevServer in development. This is the JS bundle // containing code from all our entry points, and the Webpack runtime. filename: 'static/js/bundle.js', + chunkFilename: 'static/js/[name].chunk.js', // This is the URL that app is served from. We use "/" in development. publicPath: publicPath, // Point sourcemap entries to original disk location From b3137c57ae8961c7327cb1dac67de353d2a2b9b0 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 1 May 2017 13:01:16 +0100 Subject: [PATCH 2/2] Add comment --- packages/react-scripts/config/webpack.config.dev.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 9fa7c1bdafa..e86847546e4 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -71,6 +71,7 @@ module.exports = { // served by WebpackDevServer in development. This is the JS bundle // containing code from all our entry points, and the Webpack runtime. filename: 'static/js/bundle.js', + // There are also additional JS chunk files if you use code splitting. chunkFilename: 'static/js/[name].chunk.js', // This is the URL that app is served from. We use "/" in development. publicPath: publicPath,