Skip to content

tonyrewin/svelte-spa-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A minimalistic router for Svelte v3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published