From f3399d63feca66a242c664d9bf03b8ec35a3b00d Mon Sep 17 00:00:00 2001 From: Yann Armelin Date: Fri, 5 Aug 2022 19:45:35 +0200 Subject: [PATCH] Fixed relative path issues in PWA setup --- package.json | 1 + update-gh-pages.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 66c3381..252de59 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "ng": "ng", "start": "ng serve", "build": "ng build", + "build-prod": "ng build --configuration production --base-href=/svg-path-editor/", "test": "ng test", "lint": "ng lint" }, diff --git a/update-gh-pages.sh b/update-gh-pages.sh index f9effd6..8fc2242 100755 --- a/update-gh-pages.sh +++ b/update-gh-pages.sh @@ -5,7 +5,7 @@ set -e git clone "https://github.com/Yqnn/svg-path-editor.git" .svg-path-editor-master cd .svg-path-editor-master npm install -npm run build -- --configuration production +npm run build-prod git checkout gh-pages rm -rf *.ico *.html *.js *.css *.txt assets mv dist/svg-path-editor/* .