Skip to content

Commit

Permalink
fix static html asset references for Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tieebs committed Sep 13, 2023
1 parent 9b4f117 commit f954d05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions viewer/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OvertureMaps PMTiles</title>
<script type="module" crossorigin src="/assets/index-a09a7a30.js"></script>
<link rel="stylesheet" href="/assets/index-3db1e16f.css">
<script type="module" crossorigin src="./assets/index-a09a7a30.js"></script>
<link rel="stylesheet" href="./assets/index-3db1e16f.css">
</head>
<body>
<div id="info">
Expand Down
38 changes: 19 additions & 19 deletions viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "overture-pmtiles",
"version": "3.3.1",
"description": "",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "Yasunori Kirimoto",
"license": "ISC",
"devDependencies": {
"typescript": "^5.2.2",
"vite": "^4.4.9"
},
"dependencies": {
"maplibre-gl": "^3.3.1",
"pmtiles": "^2.10.0"
}
"name": "overture-pmtiles",
"version": "1.0.0",
"description": "Show PMTiles using MapLibreGL",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "Tim Ebben",
"license": "MIT",
"devDependencies": {
"typescript": "^5.2.2",
"vite": "^4.4.9"
},
"dependencies": {
"maplibre-gl": "^3.3.1",
"pmtiles": "^2.10.0"
}
}
2 changes: 1 addition & 1 deletion viewer/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default {
base: '/'
base: './'
}

0 comments on commit f954d05

Please sign in to comment.