DEV Community

Discussion on: How to Create and Publish a React Component Library

Collapse
 
farihaaftab0 profile image
FarihaAftab0 • Edited

Will you please tell how to make it work with css modules.. how to resolve module.scss extension?

Thread Thread
 
alexeagleson profile image
Alex Eagleson

Simply add modules: true on your Rollup postcss plugin. There's a section for modules on the plugin NPM docs:

npmjs.com/package/rollup-plugin-po...

Some comments have been hidden by the post's author - find out more