Skip to content

Commit bcb1ebe

Browse files
authored
Update README.md
update more info
1 parent 5085b03 commit bcb1ebe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Multipage Svelte, Svelte MPA
22

3+
This is starter template to create multiple-page application using plain Svelte, so just like SvelteKit static-adapter, but without unecessary complexity it introduces.
4+
35
The purpose of this project is to make [Svelte](//svelte.dev/) that defaults is component-based SPA into an statically-generated MPA (multi-page SPA, page+component-based).
46
So for deployment you only need to [rsync](//rsync.samba.org/) the `.html`, imported/external `.css`/`.js` and any other assets (images, fonts, non-`.svelte` files).
57
It was originally built for [Z](https://github.com/kokizzu/gotro/tree/master/Z) template engine.
@@ -60,6 +62,8 @@ It would automatically generate 3 files: `foo/bar.html`, `subpage/page3.html`, a
6062

6163
## 🍴 Usage
6264

65+
Svelte-MPA is just consist of `build.js`, `package.json`, `svelte.config.js`, so you just need to copy those files to your project, then create `_layout.html` and one `.svelte` file to start. Or alternatively just clone whole directory manually or using `degit` and remove stuff that you don't need.
66+
6367
```shell
6468
npm install -g degit # scaffolding helper
6569
degit kokizzu/svelte-mpa myproject1 # clone this repo with new name

0 commit comments

Comments
 (0)