This is the Wails SvelteKit template. This template uses adapter-static(SPA) to make generated files embeddable.
go install github.com/wailsapp/wails/v2/cmd/wails@latest
wails init -n YOUR_PROJECT_NAME -t https://github.com/h8gi/wails-sveltekit-template
wailsjs
modules is located in /frontend/src/lib
so that you can call them like $lib/wailsjs/go/main/App
in svelte files.
To run in live development mode, run wails dev
in the project directory. In another terminal, go into the frontend
directory and run npm run dev
. The frontend dev server will run on http://localhost:34115. Connect to this in your
browser and connect to your application.
To build a redistributable, production mode package, use wails build
.