Skip to content

Commit 68083f6

Browse files
authored
Merge pull request #114 from Web-Dev-Path/convert-to-PWA
Made the site a PWA
2 parents a180cb5 + 4370849 commit 68083f6

File tree

7 files changed

+2761
-45
lines changed

7 files changed

+2761
-45
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ node_modules
44
.env
55
.DS_Store
66

7+
# PWA files
8+
**/public/sw.js
9+
**/public/sw.js.map
10+
**/public/worker-*.js
11+
**/public/worker-*.js.map
12+
**/public/workbox-*.js
13+
**/public/workbox-*.js.map

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4444

4545
### Added
4646

47+
- Made the site a Progressive Web App (PWA)
4748
- About page content (first section)
4849

4950
### Fixed

next.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const withPWA = require('next-pwa');
2+
3+
module.exports = withPWA({
4+
pwa: {
5+
dest: 'public',
6+
register: true,
7+
skipWaiting: true,
8+
},
9+
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"dependencies": {
1414
"html-entities": "^2.3.2",
1515
"next": "^12.0.10",
16+
"next-pwa": "^5.5.4",
1617
"react": "17.0.1",
1718
"react-dom": "17.0.1",
1819
"react-google-recaptcha": "^2.1.0",

public/favicon/maskable192.png

5.12 KB
Loading

public/favicon/site.webmanifest

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{
22
"name": "Web Dev Path",
33
"short_name": "Web Dev Path",
4+
"start_url": "/",
45
"icons": [
5-
{
6-
"src": "/android-chrome-192x192.png",
7-
"sizes": "192x192",
8-
"type": "image/png"
9-
},
10-
{
11-
"src": "/android-chrome-512x512.png",
12-
"sizes": "512x512",
13-
"type": "image/png"
14-
}
6+
{
7+
"src": "/favicon/android-chrome-192x192.png",
8+
"sizes": "192x192",
9+
"type": "image/png"
10+
},
11+
{
12+
"src": "/favicon/android-chrome-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png"
15+
},
16+
{
17+
"src": "/favicon/maskable192.png",
18+
"sizes": "192x192",
19+
"type": "image/png",
20+
"purpose": "maskable"
21+
}
1522
],
16-
"theme_color": "#ffffff",
17-
"background_color": "#ffffff",
18-
"display": "standalone"
19-
}
23+
"theme_color": "#FFFFFF",
24+
"background_color": "#FFFFFF",
25+
"display": "standalone",
26+
"orientation": "portrait"
27+
}

yarn.lock

Lines changed: 2721 additions & 31 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)