From 66679dddac459d407b91ffeb2b9ba7f5b3fe48d8 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 19 Feb 2023 12:02:29 +0100 Subject: [PATCH] - modified package.json to accomodate new directory structure in deployment --- package.json | 7 ++++--- src/index.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 46ebf59..b14f4e7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "email": "eclipse@unterdemradar.de", "url": "https://www.unterdemradar.de" }, - "homepage": "https://www.unterdemradar.de/sr2ini", + "homepage": "https://www.unterdemradar.de/sr2ini/", "license": "ISC", "source": "src/index.html", "devDependencies": { @@ -16,15 +16,16 @@ "parcel": "^2.8.3", "parcel-reporter-static-files-copy": "^1.5.0" }, + "publicUrl": "./", "dependencies": { }, "staticFiles": { "staticPath": "src/img" }, "scripts": { - "start": "npx parcel serve src/index.html --public-url / --dist-dir dist", + "start": "npx parcel serve src/index.html --public-url ./ --dist-dir dist", "prebuild": "rm -rf dist/", - "build": "npx parcel build", + "build": "npx parcel build --public-url ./", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/src/index.html b/src/index.html index 266d1aa..3db739f 100644 --- a/src/index.html +++ b/src/index.html @@ -31,7 +31,7 @@ SR2 Initiative Tracker