clr-ui-dark.min.css file appears very large, even when bundles are optimized

85 views Asked by At

I'm just wondering if others see the same in their projects, or perhaps I've done something wrong, but it looks to me like the dark styling takes up about 1/3 (using webpack-bundle-analyzer) of the total size of my app.

enter image description here

1

There are 1 answers

1
Jeremy Wilken On

Webpack and Angular CLI don't optimize the CSS so its just a matter of how much code is being shipped compared with other parts of your application. If you really need to optimize your CSS, then the approach is you'd have to build it yourself and leave out the unnecessary parts, though this can be difficult and cause bugs if you don't keep it updated properly.