Skip to main content

All Questions

Tagged with
0 votes
1 answer
62 views

css gets transitioned at first mount

I have a svelte app that mounts some progress dots into a pretty plain html site. simplified the ProgressDots.svelte has this: hello <div class="progress-dots"> <div class="...
munHunger's user avatar
  • 3,061
1 vote
2 answers
369 views

controlling css order in vite dev server

I have a webpage, that loads a script from a vite dev server. so at the end of body I have this tag <script type="module" src="https://localhost:5173/index.ts"></script>...
munHunger's user avatar
  • 3,061
0 votes
1 answer
91 views

Serving .js and .css from Vite + Svelte to a static website

I have a pre-existing website using a popular website builder. I want to be able to inject interactive svelte components on certain blog pages to help demonstrate concepts. I got a rough prototype ...
learyjk's user avatar
  • 731
0 votes
1 answer
554 views

How to dynamically color an imported SVG icon in Svelte without CSS filters?

I am running into trouble trying to achieve a simple task: with an icon imported into a Svelte component using Vite's asset import, how can I change the color of the icon? <script> // This ...
goose_lake's user avatar
  • 1,532
25 votes
2 answers
8k views

SvelteKit: How to output build as single HTML file with inlined JS and CSS?

Is it possible to build a SvelteKit project to a single output HTML file which inlines all JS and CSS? Could SvelteKit be configured to support this output format or do I need to use an external build ...
Samuel Plumppu's user avatar