Skip to content

Commit a065ef1

Browse files
bmattolexun
authored andcommitted
Add support for css modules
1 parent 6727d4a commit a065ef1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ module.exports = function(publicPath) {
147147
// "style" loader turns CSS into JS modules that inject <style> tags.
148148
// In production, we use a plugin to extract that CSS to a file, but
149149
// in development "style" loader enables hot editing of CSS.
150+
// ZEAL: Add support for CSS Modules
150151
{
151152
test: /\.css$/,
152-
loader: 'style!css?importLoaders=1!postcss'
153+
loader: 'style!css?importLoaders=1&modules=1!postcss'
153154
},
154155
// JSON is not enabled by default in Webpack but both Node and Browserify
155156
// allow it implicitly so we also enable it.

0 commit comments

Comments
 (0)