An open API service indexing awesome lists of open source software.

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

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)