webpack-contrib / style-loader

Style Loader
MIT License
1.65k stars 473 forks source link

Excessive whitespace and line breaks in code generated by style-loader #618

Closed nanianlisao closed 8 months ago

nanianlisao commented 8 months ago

I've noticed that the code generated by style-loader retains a significant amount of whitespace and line breaks, even when optimization.minimize is enabled.

This impacts the size of the final bundle, especially in cases where there is a large amount of CSS.

I'm not sure if there are features or options that I'm unaware of that could help with this issue. Any assistance or guidance would be greatly appreciated.

nanianlisao commented 8 months ago

I apologize for the confusion. I misunderstood the process. I now realize that I should be using PostCSS to handle modifications to the source files in advance.

Thank you for your patience and assistance.