Skip to content

Commit 9e9caee

Browse files
committed
Make local classnames global
1 parent 1bffa4c commit 9e9caee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/webpack.config.dev.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ module.exports = {
6868
{
6969
test: /\.css$/,
7070
include: srcPath,
71-
loader: 'style!css!postcss'
71+
// We "disable" local classes by setting the "unique" classname to the original classname,
72+
// making it global again.
73+
// Ref: https://github.com/facebookincubator/create-react-app/issues/90
74+
loader: 'style!css?localIdentName=[name]!postcss'
7275
},
7376
{
7477
test: /\.json$/,

0 commit comments

Comments
 (0)