Results 353 comments of Tee Ming

@dummdidumm would it make sense to add a `postinstall` lifecycle script to the create-svelte templates so that it runs `svelte-kit sync` after installing the packages? I'm not sure what the...

Here's a custom transform that works now. However, it doesn't cache the results so performance is slow when reloading the page. ```ts import { type TransformFactory } from 'imagetools-core'; import...

closing this as Vite now prints the absolute path since https://github.com/vitejs/vite/commit/88c855eadcff7b59e175610c0f8a0b1e04a3ad12

> Is this still not resolved, because the docs said it should work but the link to `outDir` documentation 404s on me? > > I'm guessing @flcarre & @devidw solutions...

Another workaround is to set `kit.config.paths.relative` to `false`. https://kit.svelte.dev/docs/configuration The issue is that the style inlining process is using the client bundle stylesheets (which have relative paths) instead of the...

`svelte.config.ts` does not work. SvelteKit currently ignores the ts config file and uses its default settings instead of throwing an error.

Ideally, we'd just pass the namespaces to the adapter options such as: ```js // svelte.config.js import adapter from '@sveltejs/adapter-cloudflare'; /** @type {import('@sveltejs/kit').Config} */ const config = { kit: { adapter:...

https://github.com/sveltejs/kit/pull/11730 has been merged which opens the door for adapters to populate `event.platform` during vite dev and vite preview. Stay tuned for updates to the cloudflare adapters :)

As a workaround for now, it's recommended to have your assets processed by Vite so they get cached. https://vitejs.dev/guide/assets.html#importing-asset-as-url For example: `src/routes/your-page/+page.svelte` ```svelte // The image and font are both...

> I use [realfavicongenerator.net](https://realfavicongenerator.net/) which gives a bunch of lanes that should be added to the `head` of `index.html`. Currently this is not working as icons are `outside of Vite...