chore: add --single flag & update pathing;

- especially annoying for nested routes
- leaving root-relative is less common case
- Closes #31
This commit is contained in:
Luke Edwards 2019-06-12 09:47:18 -07:00
parent 9e13066a0c
commit 710c36b036
2 changed files with 6 additions and 6 deletions

View file

@ -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"
}
}

View file

@ -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>