Home

Awesome

Svelte Router Template

Boilerplate template project for spaceavocado/svelte-router - Simple Svelte Router for Single Page Applications (SPA).

Live Preview

https://spaceavocado.github.io/svelte-router-template/

Setup

  1. Clone this repository or create your repository from this template.
  2. Install packages: npm install or yarn install

Essential Information

Local Development Server

To run the development server that provides live reloading, run: npm run start or yarn start

Production Build

npm run build:prod or yarn build:prod

Note: If hosted in a sub-folder, e.g. domain.com/project/, please update the baseURL in:

The productions files are located in /publish folder:

License

Svelte Router is released under the MIT license. See LICENSE.txt.