-
Notifications
You must be signed in to change notification settings - Fork 31
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
Parcel/Svelte: styles are duplicated #138
Comments
The duplication is not the only problem. I have tried to use CSS background images in this Svelte/Parcel template and couldn't get them to work. It seems that the image files are copied to the dist folder, but their paths are broken; surprisingly only in one of the style copies, and unfortunately in the copy that takes precedence. |
This happened in the official Sapper build for a while, and a really random library upgrade stopped it happening. Might be related. Edit: Ah, looks like it was rollup 2 which solved it. Maybe a starting point... |
Possibly related? parcel-bundler/parcel#2592 |
I think I have a solution for this in the Parcel2 transformer that may apply here also (see orlov-vo/parcel-transformer-svelte#8) |
🐛 Bug Report
Styles are being duplicated. In a Svelte component like…
…DevTools shows these styles:
Seems to be related to sveltejs/sapper#1127.
🎛 Configuration (.svelterc, package.json, cli command)
package.json:
No extra configuration in Svelte rendering.
💻 Code Sample
Example repo: @jsonkao/svelte-parcel-duplicate-styles
The text was updated successfully, but these errors were encountered: