CSBP-CPSE / web-mapping-components

Other
2 stars 2 forks source link

Bundle style rules with web-mapping-components library #28

Closed roikle closed 3 years ago

roikle commented 3 years ago

Currently each viewer has a collection of style rules but many of these are the same, and relate to components found in the core web-mapping-components library. As a result the following should be performed;

  1. A CSS directory should be added to the web-mapping-components.
  2. Viewer CSS style rules relating to web-mapping-components generated content should be moved into web-mapping-components library. Viewer specific rules should be left in viewer index.css file.
  3. For organizational purposes, CSS rules should be broken up by context. E.g. all map style rules should be in one CSS file, all controller rules should be in another CSS file, etc.
  4. All CSS files should be bundled together into a single web-mapping-components.css file which can be linked by viewers.
  5. Update documentation to include note about including bundled CSS file in viewer projects.
roikle commented 3 years ago

Numerous rollupjs plugins exist for bundling css files, currently the rollup-plugin-postcss appears to be a popular plugin for this bundling process.