From 2674a3cf17e588853977c76de9b9e82fadbcfe8c Mon Sep 17 00:00:00 2001 From: km0 Date: Tue, 6 Jun 2023 10:12:12 +0200 Subject: [PATCH] vite config --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 15190a3..9606bec 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,22 @@ And then you can launch the dev server with 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 ### 04.06.23