Prevent CSS duplication in Webpack chunks when using code split

730 Views Asked by At

I'm on a projet using LESS imported from JS bundled by webpack4.

My problem is that the project have its own design-system, with components using same components like "typography"

Example:
I have a button that import typo.less.
So all my chunks using that button will generate the result of typo.less.
How can I prevent this duplication? splitChunks seems not to operate here.

0

There are 0 best solutions below