Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 710c36b

Browse files
committed
chore: add --single flag & update pathing;
- especially annoying for nested routes - leaving root-relative is less common case - Closes #31
1 parent 9e13066 commit 710c36b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "rollup -c",
1717
"autobuild": "rollup -c -w",
1818
"dev": "run-p start:dev autobuild",
19-
"start": "sirv public",
20-
"start:dev": "sirv public --dev"
19+
"start": "sirv public --single",
20+
"start:dev": "sirv public --single --dev"
2121
}
2222
}

public/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
<title>Svelte app</title>
88

9-
<link rel='icon' type='image/png' href='favicon.png'>
10-
<link rel='stylesheet' href='global.css'>
11-
<link rel='stylesheet' href='bundle.css'>
9+
<link rel='icon' type='image/png' href='/favicon.png'>
10+
<link rel='stylesheet' href='/global.css'>
11+
<link rel='stylesheet' href='/bundle.css'>
1212
</head>
1313

1414
<body>
15-
<script src='bundle.js'></script>
15+
<script src='/bundle.js'></script>
1616
</body>
1717
</html>

0 commit comments

Comments
 (0)