Fixed relative path issues in PWA setup

This commit is contained in:
Yann Armelin
2022-08-05 19:45:35 +02:00
parent f3c72a198c
commit f3399d63fe
2 changed files with 2 additions and 1 deletions

View File

@@ -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"
},

View File

@@ -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/* .