Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Dec 14, 2023
2 parents 5572515 + 25e783d commit 0c6c6d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
"purpose": "maskable"
}
],
"screenshots": [
{
"src": "content/front_page_app.png",
"sizes": "1920x1040",
"type": "image/png",
"label": "Blockbench Interface"
}
],
"start_url": "./index.html",
"background_color": "#21252b",
"theme_color": "#3e90ff",
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate_pwa.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ workbox.generateSW({
globPatterns: [
'./index.html',
'./favicon.png',
'./icon_maskable.png',

'./js/**/*',
'./bundle.js',
Expand All @@ -15,6 +16,7 @@ workbox.generateSW({
'./font/*',
],
swDest: './service_worker.js',
maximumFileSizeToCacheInBytes: 4_096_000,
sourcemap: false
}).then(({count, size}) => {
console.log(`Generated service-worker, which will precache ${count} files, totaling ${(size/1e6).toFixed(2)} MB.`);
Expand Down

0 comments on commit 0c6c6d7

Please sign in to comment.