From 57bef2cb927ca23a9e853324ab9015fcc592675a Mon Sep 17 00:00:00 2001 From: John Papa Date: Mon, 24 Feb 2020 09:29:04 -0500 Subject: [PATCH] Proposing that --single to npm run dev I propose that the flag `--single` be added to the `npm run dev` script. This will allow fallback routing to work with the development server. This is important as new folks use this template to get started. When they add client side routing and they refresh on a client side route, the current behavior will result in a 404. By adding `--single` this will "just work" This is documented in the readme here, but I believe that this should be the default. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbdd81f5..159ed4b6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "build": "rollup -c", "dev": "rollup -c -w", - "start": "sirv public" + "start": "sirv public --single" }, "devDependencies": { "@rollup/plugin-commonjs": "^11.0.0",