Skip to content

Commit

Permalink
chore: add --single flag & update pathing;
Browse files Browse the repository at this point in the history
- especially annoying for nested routes
- leaving root-relative is less common case
- Closes sveltejs#31
  • Loading branch information
lukeed committed Jun 12, 2019
1 parent 9e13066 commit 710c36b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "rollup -c",
"autobuild": "rollup -c -w",
"dev": "run-p start:dev autobuild",
"start": "sirv public",
"start:dev": "sirv public --dev"
"start": "sirv public --single",
"start:dev": "sirv public --single --dev"
}
}
8 changes: 4 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<title>Svelte app</title>

<link rel='icon' type='image/png' href='favicon.png'>
<link rel='stylesheet' href='global.css'>
<link rel='stylesheet' href='bundle.css'>
<link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/bundle.css'>
</head>

<body>
<script src='bundle.js'></script>
<script src='/bundle.js'></script>
</body>
</html>

0 comments on commit 710c36b

Please sign in to comment.