Boilerplate template project for spaceavocado/svelte-router - Simple Svelte Router for Single Page Applications (SPA).
https://spaceavocado.github.io/svelte-router-template/
npm install
or yarn install
createRouter({
mode: ROUTER_MODE.HASH,
});
To run the development server that provides live reloading, run:
npm run start
or yarn start
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:
- webpack.config.js
- package.json
The productions files are located in /publish folder:
Svelte Router is released under the MIT license. See LICENSE.txt.