Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nanianlisao opened this issue Jan 11, 2024 · 1 comment
Closed

Comments

@nanianlisao
Copy link

nanianlisao commented Jan 11, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant