halkhalil / svelte-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Svelte 48.5%Language:JavaScript 41.3%Language:CSS 5.7%Language:HTML 4.5%