https://github.com/lukeed/svelte-demo
Multi-page demo built Svelte 3.x and Rollup with code-splitting
https://github.com/lukeed/svelte-demo
Last synced: 10 months ago
JSON representation
Multi-page demo built Svelte 3.x and Rollup with code-splitting
- Host: GitHub
- URL: https://github.com/lukeed/svelte-demo
- Owner: lukeed
- License: mit
- Created: 2018-12-02T04:48:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T00:50:46.000Z (almost 5 years ago)
- Last Synced: 2024-06-29T00:18:19.580Z (about 2 years ago)
- Language: Svelte
- Homepage:
- Size: 115 KB
- Stars: 113
- Watchers: 7
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
# 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](https://github.com/lukeed/navaid) for client-side routing
* Familiar module-context `preload()` helper
> **TypeScript?:** Check out the [`typescript` branch](https://github.com/lukeed/svelte-demo/tree/typescript)~!
## Setup
```sh
$ 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.
```sh
$ 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](https://lukeed.com)