chore: Use webpack to build production version

This commit is contained in:
2026-06-05 03:04:58 +00:00
parent 41bbb7a44b
commit 58552b536f
9 changed files with 6222 additions and 12 deletions

View File

@@ -3,9 +3,12 @@ host := "chimaera.malzahn.lan"
www-root := "/home/admin/caddy/public_html/fabula"
serve:
python3 -m http.server
npm run dev
deploy:
scp fabula-ultima-sheet.html {{ user }}@{{ host }}:{{ www-root }}/index.html
scp fabula-ultima-sheet.css {{ user }}@{{ host }}:{{ www-root }}/fabula-ultima-sheet.css
scp fabula-ultima-sheet.js {{ user }}@{{ host }}:{{ www-root }}/fabula-ultima-sheet.js
deploy: build
scp dist/index.html {{ user }}@{{ host }}:{{ www-root }}/index.html
scp dist/bundle.*.js {{ user }}@{{ host }}:{{ www-root }}/
scp dist/styles.*.css {{ user }}@{{ host }}:{{ www-root }}/
build:
npm run build