hslayers / hslayers-ng

User interface and map building extensions for OpenLayers
https://ng.hslayers.org/
MIT License
37 stars 20 forks source link

Css is needlesly bundled in hslayers code #2223

Closed raitisbe closed 3 years ago

raitisbe commented 3 years ago

Bug

Describe the bug Styles (bootstrap, whhg, hslayers) should not be included in main.js file, because it makes it hard to track why the components are so large in source-map-explorer, the styles are distributed with the application even if the container application developer chooses to use other font icons or his own bootstrap bundle.

Expected behavior Styles should be distributed outside hslayers bundle in separate files under node-modules/hslayers-ng/src/css/

Should provide also a compiled css file apart from scss.

raitisbe commented 3 years ago

Before: image

After: image

The bootsstrap code is only moved to another file, but ol.css is not imported twice now.