The combination of CSS Modules and PostCSS could be our new option
chuck
182

Few things:

camelCase is so usuful. We prefer class names chained by hyphens like ‘hoge-container’. But you know we can’t use that case in JavaScript. So camelCase option makes css-loader convert case of class names.”

Technically you can still use hyphenated class names in JS, you just have to do styles[‘dashed-class-name’] instead of the usual dot notation.

Also, you don’t mention anything about @import statements in the CSS, nor any examples where you use url() to pull in fonts or images. I’m running into an issue where I can’t get @import statements wrapped in a :global { } nesting to work properly, like it does in Sass.

There is a known disclaimer regarding this on the postcss-loader docs: https://github.com/postcss/postcss-loader#css-modules

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.