diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index e05c8ae0cb4..c8d1f3b13d9 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -310,7 +310,7 @@ module.exports = { // Adds support for CSS Modules (https://github.com/css-modules/css-modules) // using the extension .module.css { - test: cssRegex, + test: cssModuleRegex, loader: getStyleLoaders({ importLoaders: 1, minimize: true,