storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.53k stars 9.3k forks source link

CSS Modules loader #13317

Open erich0123 opened 3 years ago

erich0123 commented 3 years ago

I would like to use css modules in my components but none of the solutions I've tried work.

Please add a section to the docs that describes a straightforward way to use css modules with storybook.

gogoinga commented 3 years ago

Then how to interpret the CSS file in components, main.js It doesn't work with CSS loader