Skip to content

Commit 05f0892

Browse files
author
Patrick Sachs
authored
Merge pull request #17 from PatrickSachs/patrick/pwa
Added PWA support
2 parents bcdfbbe + 2683bd9 commit 05f0892

File tree

18 files changed

+739
-37
lines changed

18 files changed

+739
-37
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SERVICE_WORKER=false
2+
BROWSERSYNC=false

.env.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BROWSERSYNC=true

.env.prod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SERVICE_WORKER=true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
dist
22
node_modules
3+
ssl/key.pem
4+
ssl/cert.pem
5+
.env.local

assets/images/icons/192.png

7.57 KB
Loading

assets/images/icons/512.png

38.7 KB
Loading

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
<meta name="HandheldFriendly" content="True">
99
<meta name="MobileOptimized" content="320">
1010
<meta http-equiv="cleartype" content="on">
11-
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
11+
<link rel="icon" type="image/x-icon" href="/assets/images/icons/favicon.ico">
1212
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons' rel="stylesheet">
13+
<link rel="manifest" href="/manifest.json">
1314
</head>
1415

1516
<body>
1617
<div id="app"></div>
1718

18-
<script src="dist/vendor.bundle.js"></script>
19-
<script src="dist/app.bundle.js"></script>
19+
<script src="/vendor.bundle.js"></script>
20+
<script src="/app.bundle.js"></script>
2021
</body>
2122

22-
</html>
23+
</html>

manifest.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"short_name": "slow-tree",
3+
"name": "slow-tree by sahnee.de",
4+
"icons": [
5+
{
6+
"src": "/assets/images/icons/192.png",
7+
"type": "image/png",
8+
"sizes": "192x192"
9+
},
10+
{
11+
"src": "/assets/images/icons/512.png",
12+
"type": "image/png",
13+
"sizes": "512x512"
14+
}
15+
],
16+
"start_url": "/",
17+
"background_color": "#212121",
18+
"display": "standalone",
19+
"scope": "/",
20+
"theme_color": "#212121"
21+
}

0 commit comments

Comments
 (0)