- modified package.json to accomodate new directory structure in deployment

This commit is contained in:
Tobias 2023-02-19 12:02:29 +01:00
parent cb36ae4159
commit 66679dddac
2 changed files with 5 additions and 4 deletions

View File

@ -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": {

View File

@ -31,7 +31,7 @@
<span class="navbar-brand text-bold ps-4">SR2 Initiative Tracker</span>
<nav class="container-fluid justify-content-end" aria-label="Main navigation">
<button type="submit" class="" id="add-combatant-button" title="Add combatant" data-bs-toggle="modal" data-bs-target="#combatant-modal"><img src="img/add.png"></button>
<button type="submit" class="" id="new-round-button" data-bs-toggle="modal" data-bs-target="#confirm-modal" title="Start new round"><img src="img/newround.png"></button>
<button type="submit" class="" id="new-round-button" title="Start new round" data-bs-toggle="modal" data-bs-target="#confirm-modal"><img src="img/newround.png"></button>
</nav>
</header>
<div class="table-responsive overflow-visible">