Svelte 3 SPA boilerplate

Router

A simple (50 lines) approach of utilizing window.onpopstate. Use pages folder to extend your routes.

Pre-render

A simple (10 lines) approach to make the routes accessable with static webhosting.

Setup

yarn
yarn dev # development
yarn generate # pre-rendered public folder

Deploying to the web

With now

Install now if you haven't already:

npm install -g now
now

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes