vite config

main
km0 1 year ago
parent aee123c36e
commit 2674a3cf17

@ -20,6 +20,22 @@ And then you can launch the dev server with
yarn dev yarn dev
``` ```
## Build static version for Soupboat
Clumsy mapping is live [here on the soupboat](https://hub.xpub.nl/soupboat/clumsy-mapping/)!
To build a static version from the vite project this is the command:
```
yarn vite build --outDir /var/www/html/clumsy-mapping --base /soupboat/clumsy-mapping --emptyOutDir
```
- `--outDir` set the output directory, in this case the public folder clumsy-mapping, that will be served from NGINX
- `--base` set the base url with the `/soupboat/` prefix
- `--emptyOutDir` empty the output directory before building the project
(note for future self: this config could come handy for [story baobab](https://git.xpub.nl/kamo/sb)
## Devlog ## Devlog
### 04.06.23 ### 04.06.23

Loading…
Cancel
Save