Skip to content

Commit

Permalink
Make local classnames global
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jul 22, 2016
1 parent 1bffa4c commit 9e9caee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ module.exports = {
{
test: /\.css$/,
include: srcPath,
loader: 'style!css!postcss'
// We "disable" local classes by setting the "unique" classname to the original classname,
// making it global again.
// Ref: https://github.com/facebookincubator/create-react-app/issues/90
loader: 'style!css?localIdentName=[name]!postcss'
},
{
test: /\.json$/,
Expand Down

0 comments on commit 9e9caee

Please sign in to comment.