Closed
Description
When I change
'css-loader?importLoader=1&modules&localIdentName=[path]___[name]__[local]___[hash:base64:5]'
to something mor suitable for me, like this:
'css-loader?importLoader=1&modules&localIdentName=[name]__[local]--[hash:6]'
I get unstyled component.
I've also tried to remove part of query string:
'css-loader?importLoader=1&modules'
and set pattern for generated names directly in babel-plugin-react-css-modules config:
'react-css-modules',
{
context,
generateScopedName: '[path]___[name]__[local]___[hash:base64:5]'
}
It doesn't work even with default value (I get unstyled component again).
I've encountered this problem in my own starter kit (and it takes me more than our to figure out what's going on 😠). But then I did the same in your demo, so to reproduce this bug just run it and try to specify some pattern other than default.
Versions:
{
"private": true,
"dependencies": {
"babel-plugin-react-css-modules": "^2.1.3",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"webpack": "^2.2.0-rc.3"
},
"devDependencies": {
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-plugin-transform-react-jsx": "^6.8.0",
"css-loader": "^0.26.1",
"style-loader": "^0.13.1",
"webpack-dev-server": "^2.2.0-rc.0"
}
}