-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Any way to avoid loading FxParallax assets? #27
Comments
I don't quite understand your question tbh? <script>
import Img, { FxParallax } from '@zerodevx/svelte-img'
import src from '$lib/a/cat.jpg?as=run'
</script>
<!-- Img component -->
<Img {src} />
<!-- Img component with Parallax -->
<FxParallax {src} /> Edit: oh do you mean |
Thank you @zerodevx, that's exactly what I mean. I never used it anywhere in the project, but it's getting loaded in the final build anyway. I installed it as usual, no difference from standard edits to But as you can see, it is part of the bundle: https://nexuser.it/_app/immutable/chunks/FxParallax.svelte_svelte_type_style_lang.2717a0f6.js |
Hey, so two things:
Firstly, this chunk includes code from Secondly, I tried reproducing this on a fresh project and can confirm that I did get a build chunk named Edit: can confirm that |
This should be fixed with |
I see that the css for FxParallax is adding an item to my request chain and since I am not using any of its features in this project I would like to disable it and just keep the Img side, is there any way to do it?
I imported as
import Img from '@zerodevx/svelte-img'
everywhereThe text was updated successfully, but these errors were encountered: