From 6517741f705ecbcf698d139305263de64557f91a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 22 Dec 2021 14:10:44 +0100 Subject: [PATCH] readd public-url flag --- scripts/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6556cac8b..0be545123 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,7 +14,7 @@ cp -r assets/themes/ dist/assets/themes/ cp -r assets/svg/ dist/assets/svg/ echo "\n\n Building non-theme pages" echo " ==========================\n\n" -parcel build --no-source-maps "index.html" "404.html" "professional.html" "automaton.html" "land.html" "customGenerator.html" "theme.html" vendor +parcel build --public-url './' --no-source-maps "index.html" "404.html" "professional.html" "automaton.html" "land.html" "customGenerator.html" "theme.html" vendor echo "\n\n Building theme pages" echo " ======================\n\n" @@ -25,8 +25,8 @@ do echo " ------------ \n\n" # Builds the necessary files for just one theme, e.g. 'bookcases.html' + 'index_bookcases.ts' + supporting file # npm run generate && node --max_old_space_size=12000 $(which parcel) build - parcel build --no-source-maps "$theme.html" + parcel build --public-url './' --no-source-maps "$theme.html" done # Optimize images -cd dist/ && find -name '*.png' -exec optipng '{}' \; && echo 'PNGs are optimized' \ No newline at end of file +cd dist/ && find -name '*.png' -exec optipng '{}' \; && echo 'PNGs are optimized'