Closed loyep closed 3 years ago
you say tree-shaking?
You can control the sideEffects in the project's package.json and should not control them in the loader. If you want to import "global" styles, just use the abc.less name, not abc.module.less. Or use this in abc.module.less
.xyz { }
:global(.abc) { } // <---- global style
sideEffect
can make use import not require the global less.