ProjectEvergreen / project-evergreen

Wiki and high level "feature" tracker for Project Evergreen
https://projectevergreen.github.io/
Apache License 2.0
11 stars 1 forks source link

Add support for CSS Production bundling #4

Open thescientist13 opened 6 years ago

thescientist13 commented 6 years ago
thescientist13 commented 6 years ago

Couple thoughts while working on component-simple-slider

  1. Extract CSS into bundles, or leave in Shadow DOM? 🤔
    • What are the ramifications performance wise? Does ShadowDOM scale with a bunch on the page? Better with / or without the use of <template> by lit-html?
  2. With styles included via inline <style> tags, we can use :host but unless the CSS is run through a preprocessor, like PostCSS, advanced syntax like nested selectors ( & ) won't be transpiled.
thescientist13 commented 6 years ago

This looks fun!
https://github.com/bashmish/lit-css