-
-
Notifications
You must be signed in to change notification settings - Fork 428
Some CSS Missing since 0.28.1 #1446
Comments
That's why I couldn't recreate the issue! |
adding these in rollup config makes the repro work: |
You can reproduce this by cloning the default sapper template and removing I made a repro here: Jayphen/sapper-preload-repro#1 and deployed it here https://sapper-preload-repro-git-broken-css.jayphen.vercel.app/blog/why-the-name |
Here is the repo for the reproduction of Reproduction 2 in the first comment by benmccann : https://github.com/TheComputerM/sapper-bug I also suspect it might be due to dynamic imports and using svelte:component |
Thanks. I can reproduce using juho/sapper-rollup-css-strip. I don't have |
@benmccann I have updated my repo to use npm. |
A Workaround would be to add the component to _layout.svelte and wrap it within display:none like this: <!-- workaround until https://github.com/sveltejs/sapper/issues/1446 is fixed -->
<div style="display: none">
<KontaktBar />
</div> |
Reproduction 1
https://github.com/juho/sapper-rollup-css-strip
Reproduction 2
On Sapper v0.28.0: https://svelte-materialify.vercel.app/components/alerts/
On Sapper v0.28.2: https://svelte-materialify-g0c0gdngr.vercel.app/components/alerts/
Alert styles aren't being rendered. This is the scss file: https://github.com/TheComputerM/svelte-materialify/blob/sapper%400.28.1/packages/svelte-materialify/src/components/Alert/Alert.scss
Additional Info
Components which are not part of the _layout.svelte or are not included by components in _layout.svelte do not have their CSS generated.
Meaning components only included in routes do not have their CSS generated
The text was updated successfully, but these errors were encountered: