Fix SSG and just commmands

This commit is contained in:
2024-09-15 22:08:44 +02:00
parent e8330c10c2
commit 50694c43f5
5 changed files with 46 additions and 10 deletions

View File

@ -52,9 +52,18 @@ kill:
clean:
rm -rf dist
# SSG
ssg:
- wget --no-convert-links -r -p -E -P dist --no-host-directories 127.0.0.1:{{port}}
- wget -P dist/svg 127.0.0.1:{{port}}/svg/icons-sprite.svg
# Preview server
preview:
npx http-server dist
# SSG export of production server
export: clean
just prod &
just wait_for_port
- wget --convert-links -r -p --level 1 -E -P dist --no-host-directories localhost:{{port}}
just ssg
just kill