Skip to content
/ svelte-demo Public template

Multi-page demo built Svelte 3.x and Rollup with code-splitting

License

Notifications You must be signed in to change notification settings

lukeed/svelte-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 typescript branch~!

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:5000 by default; use PORT to 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

About

Multi-page demo built Svelte 3.x and Rollup with code-splitting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published