Replies: 2 comments
-
why don't use vite config instead? // svelte.config.js file
/** @type {import('@sveltejs/kit').Config} */
const config = {
// ...
kit: {
// ...
vite: {
build: {
watch: {} // here
},
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, Thanks for the suggestion. Unfortunately, this results in the following error when issuing
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Vite's build command has a
--watch
flag thatrebuilds when modules have changed on disk
. I've been experimenting using Svelte in Wails (wails.io) and this is necessary to work alongside of the Go live-reloading feature. I just change the npm run command tovite build --watch
. I was hoping to play around with SvelteKit in Wails, but I can't figure out how to achieve this in SvelteKit. Is, or would, it possible to do this or something similar using SvelteKit too?Thanks
Beta Was this translation helpful? Give feedback.
All reactions