webpack-contrib / mini-css-extract-plugin

Lightweight CSS extraction plugin
MIT License
4.65k stars 389 forks source link

Can I have one selector in the main block instead of two selectors in the lazy one? #1052

Closed ignatiqq closed 10 months ago

ignatiqq commented 11 months ago

Hello, i have a question about this plugin functionallity. I didnt find the answer at docs. (mini-css-extract-plugin)

So I have a react app with a router and 2 lazy fragments on each path. I also have a common component that is used in both of them. After generating css I have a rule which duplicates in both of them, can I somehow move it to the main chunk instead?

https://stackoverflow.com/questions/77083894/how-to-not-to-separate-css-styles-from-shared-component-to-other-lazy-loaded-chu