svelte-demo
Multi-page Svelte 3.x application, built with Rollup and code-splitting enabled.
Includes:
- Rollup
- Svelte 3.x
- Live-reload dev server
- Navaid for client-side routing
- Familiar module-context
preload()helper
TypeScript?: Check out the
typescriptbranch~!
#Setup
$ npm install
# or
$ pnpm install
# or
$ yarn install
#Development
Spawns a localhost devserver, which automatically reloads whenever contents within the public directory change.
Note: Listens on
localhost:5000by default; usePORTto modify the port.
$ npm run dev
# or
$ pnpm dev
# or
$ yarn dev
# Modify the port
$ PORT=8080 yarn dev
#Build
Builds the project for production.
All output assets are available in the public directory.
#License
MIT © Luke Edwards