From 710c36b036f98262279d22f638940746ce7ab4f5 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Wed, 12 Jun 2019 09:47:18 -0700 Subject: [PATCH 1/2] chore: add `--single` flag & update pathing; - especially annoying for nested routes - leaving root-relative is less common case - Closes #31 --- package.json | 4 ++-- public/index.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8d1ebc5..2ee9b25 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/public/index.html b/public/index.html index 3d6b697..123d09d 100644 --- a/public/index.html +++ b/public/index.html @@ -6,12 +6,12 @@ Svelte app - - - + + + - + \ No newline at end of file From fcb39a7ad2a702cb84aa158e20229c2652df87f5 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Wed, 12 Jun 2019 09:48:43 -0700 Subject: [PATCH 2/2] chore: move `sirv-cli` to dependencies; - Closes #44 - Closes #45 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ee9b25..8800154 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "rollup-plugin-node-resolve": "^4.2.3", "rollup-plugin-svelte": "^5.0.3", "rollup-plugin-terser": "^4.0.4", - "sirv-cli": "^0.4.0", "svelte": "^3.0.0" }, + "dependencies": { + "sirv-cli": "^0.4.4" + }, "scripts": { "build": "rollup -c", "autobuild": "rollup -c -w",