tj / frontend-boilerplate

webpack-react-redux-babel-autoprefixer-hmr-postcss-css-modules-rucksack-boilerplate (unmaintained, I don't use it anymore)
2.93k stars 268 forks source link

Tweak `localIdentName` for much simpler classes #83

Closed iduuck closed 7 years ago

iduuck commented 8 years ago

In the webpack.config.js you are using the localIdentName like following:

localIdentName=[name]__[local]___[hash:base64:5]

which is resulting in css classes like: style__teaser___2snRC. But since your concept looks like you are using an index.js and and style.css for each component and container you are writing, this would be redundant and it would make much more sense to just use the following to achieve a simpler class name like teaser___2snRC:

localIdentName=[local]___[hash:base64:5]

:shipit: Pull request #84