To generate static files (SSG) with SvelteKit instead of SSR you can use the static adapter. https://github.com/sveltejs/kit/tree/master/packages/adapter-static

Reply to this note

Please Login to reply.

Discussion

Thanks. I just got this working.

Do you know if there it a way to compile all the JavaScript output into a single file?

Popular tools include Webpack and Rollup for combining JavaScript files (with dependencies). Webpack is more for making websites, whereas Rollup is for making distributables for libraries.