Skip to content

Commit

Permalink
Merge pull request sveltejs#46 from sveltejs/chore/sirv
Browse files Browse the repository at this point in the history
Chore: Solve FAQ/troubles w/ `sirv-cli` usage
  • Loading branch information
Rich-Harris authored Jun 17, 2019
2 parents 9e13066 + fcb39a7 commit 86495b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
"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",
"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 86495b4

Please sign in to comment.