Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Mar 4, 2021
1 parent 63760f0 commit 02c68a4
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 10 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public",
"validate": "svelte-check"
"validate": "svelte-check",
"deploy": "gh-pages -d public"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
Expand All @@ -25,6 +26,7 @@
},
"dependencies": {
"fuse.js": "^6.4.6",
"gh-pages": "^3.1.0",
"sirv-cli": "^1.0.0"
}
}
8 changes: 4 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<title>The Hitchhiker's Gide to the Cataclysm</title>

<link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/build/bundle.css'>
<link rel='icon' type='image/png' href='favicon.png'>
<link rel='stylesheet' href='global.css'>
<link rel='stylesheet' href='build/bundle.css'>

<script defer src='/build/bundle.js'></script>
<script defer src='build/bundle.js'></script>
</head>

<body>
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import App from './App.svelte';

if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
}, function(err) {
navigator.serviceWorker.register('service-worker.js').catch((err) => {
console.log('ServiceWorker registration failed: ', err);
});
});
Expand Down
Loading

0 comments on commit 02c68a4

Please sign in to comment.