DEV Community

Discussion on: How to create a react component library using Storybook, TypeScript, SCSS, and Rollup?

Collapse
 
celineotter profile image
Celine Otter

Do you have any advice for using css modules with scss in your project by any chance? I haven't been successful enabling it in your project using

github.com/egoist/rollup-plugin-po...
& node-sass

Collapse
 
iamrishupatel profile image
Rishu Patel

I haven't thought of using css modules but its a good idea. I'll look into it and get back to you.

Collapse
 
iamrishupatel profile image
Rishu Patel • Edited

CSS modules can be used in storybook with storybook-css-modules addon and post-css can bundle it up.

Webpack and sass-loader is having some issues while using sass-modules, I am trying to find solution. I'll add them here if found.

I hope this helps.