Open thescientist13 opened 2 years ago
✔️ Deploy Preview for practical-fermat-fa2c48 ready!
🔨 Explore the source changes: 5314489469004ee8837059d5893c2c626447ee2d
🔍 Inspect the deploy log: https://app.netlify.com/sites/practical-fermat-fa2c48/deploys/61c64ccd5e60a100087b8b6f
😎 Browse the preview: https://deploy-preview-56--practical-fermat-fa2c48.netlify.app/
Not sure if this guide would help, since Tailwind is also "global"?
Also this seems like an interesting conversation to track.
Related Issue
related to #28
Summary of Changes
createRenderRoot
and just spit out<style>
tags@imports
and made all CSS "singletons" and each WC isn't carrying a copy of FA and BootstrapThis has significantly improved bundle size!
Before
JS + CSS = 1.3MB
After
JS + CSS = 289 KB 😮
TODO
Looks like the router is "blocking" all global CSS because it introduces its own Shadow "boundary" - https://github.com/fernandopasik/lit-redux-router/issues/60