Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated CSS #8

Closed
canadaduane opened this issue Sep 19, 2020 · 2 comments
Closed

Duplicated CSS #8

canadaduane opened this issue Sep 19, 2020 · 2 comments

Comments

@canadaduane
Copy link

@jsonkao reported this same issue in parcel-plugin-svelte for Parcel 1.x:

DeMoorJasper/parcel-plugin-svelte#138

I've made a reproducible test case, based on his original case here: https://github.com/canadaduane/svelte-parcel-duplicate-styles

From jsonkao:

Styles are being duplicated. In a Svelte component like…

<div></div>

<style>
  div {
    background: red;
    width: 100px;
    height: 100px;
  }
</style>

…DevTools shows these styles:

image

@canadaduane
Copy link
Author

See also sveltejs/sapper#1076 which inspired the fix.

@jsonkao
Copy link

jsonkao commented Aug 29, 2023

Hi! Coming back to this issue three years later lol… what if I do want CSS inlined? And I don't at all want the <link> to reference a diferent stylesheet?

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 a pull request may close this issue.

2 participants