diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 96fd632b79565791ee35ebd8ba20199ccc34d3cc..37a10dc1734c388c3545a1d3985d580bc1a56000 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -218,6 +218,9 @@ module.exports = { new webpack.DefinePlugin(env), // This is necessary to emit hot updates (currently CSS only): new webpack.HotModuleReplacementPlugin(), + // This adds the name of the file in the notification from HMR, instead of + // the number of the module + new webpack.NamedModulesPlugin(), // Watcher doesn't work well if you mistype casing in a path so we use // a plugin that prints an error when you attempt to do this. // See https://github.com/facebookincubator/create-react-app/issues/240