Open ricardosouza-logmein opened 4 years ago
modules
can be a postcss-modules
settings object - have you tried using globalModulePaths
?
e.g.
postcss({
extensions: [".css"],
modules: {
globalModulePaths: [/slick-carousel/]
},
extract: false
}),
Thanks, it works
I'm having the same issue. I'm following this tutorial to create a react component library with node 18. I have modules and extract set to true. When I run it I see the CSS output with the hashed names as I expect. When I change modules to be "modules: {}" all of the CSS classes lose their hashed naming. I'm using rollup 3.19 and rollup-plugin-postcss 4.0.2
I have this rollup configuration
and some of my components are importing a css from a lib
Using
modules: true
all the slick-carousel styles are "broken"