Skip to content

Fix CSS handling flow #2

Merged
zodern merged 5 commits into
zodern:masterfrom
arggh:fix/css
Sep 6, 2021
Merged

Fix CSS handling flow #2
zodern merged 5 commits into
zodern:masterfrom
arggh:fix/css

Conversation

@arggh

@arggh arggh commented Jul 19, 2021

Copy link
Copy Markdown

Here is a somewhat working proof of concept as a result of me tinkering with the plugin (in case it might be useful).

css: false ➡️ All compiled Svelte components' CSS in merged into the stylesheets

css: true ➡️ CSS is included in the component code

Caching seems a bit broken, if I change from css: false to css: true, all styles are missing until a meteor reset.

arggh added 2 commits July 19, 2021 23:03
Include CSS in merged stylesheets if options.css == false.

This is in accordance with the purpose of the original Svelte compiler config `css`, which in essence determines if the CSS should be part of the component's JS or output as CSS to be included in a static stylesheet somewhere.
Comment thread MelteCompiler.js Outdated
It is now compatible with both version before and after 3.30.0

sveltejs/svelte#5584
@zodern zodern merged commit b3a85bf into zodern:master Sep 6, 2021
@zodern

zodern commented Sep 6, 2021

Copy link
Copy Markdown
Owner

Thanks @arggh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants