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

Commit 86495b4

Browse files
authored
Merge pull request #46 from sveltejs/chore/sirv
Chore: Solve FAQ/troubles w/ `sirv-cli` usage
2 parents 9e13066 + fcb39a7 commit 86495b4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
"rollup-plugin-node-resolve": "^4.2.3",
1010
"rollup-plugin-svelte": "^5.0.3",
1111
"rollup-plugin-terser": "^4.0.4",
12-
"sirv-cli": "^0.4.0",
1312
"svelte": "^3.0.0"
1413
},
14+
"dependencies": {
15+
"sirv-cli": "^0.4.4"
16+
},
1517
"scripts": {
1618
"build": "rollup -c",
1719
"autobuild": "rollup -c -w",
1820
"dev": "run-p start:dev autobuild",
19-
"start": "sirv public",
20-
"start:dev": "sirv public --dev"
21+
"start": "sirv public --single",
22+
"start:dev": "sirv public --single --dev"
2123
}
2224
}

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)