Skip to content

Commit cc36849

Browse files
authored
fix broken css module support in prod (#4361)
1 parent 32eebfe commit cc36849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ module.exports = {
310310
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
311311
// using the extension .module.css
312312
{
313-
test: cssRegex,
313+
test: cssModuleRegex,
314314
loader: getStyleLoaders({
315315
importLoaders: 1,
316316
minimize: true,

0 commit comments

Comments
 (0)