Fix PWA build errors
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -146,7 +146,7 @@
|
|||||||
|
|
||||||
// Register service worker (only on production build)
|
// Register service worker (only on production build)
|
||||||
serviceWorker: process.env.NODE_ENV ==='production' ? {
|
serviceWorker: process.env.NODE_ENV ==='production' ? {
|
||||||
path: '/service-worker.js',
|
path: './service-worker.js',
|
||||||
} : {},
|
} : {},
|
||||||
|
|
||||||
// Input settings
|
// Input settings
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
|
* Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
|
||||||
* Enable inline JS: add 'unsafe-inline' to default-src
|
* Enable inline JS: add 'unsafe-inline' to default-src
|
||||||
-->
|
-->
|
||||||
<meta http-equiv="Content-Security-Policy" content="worker-src blob:; child-src blob: gap:; img-src 'self' blob: data:; default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: content:">
|
<meta http-equiv="Content-Security-Policy" content="worker-src 'self' blob:; child-src blob: gap:; img-src 'self' blob: data:; default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: content:">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
|
||||||
|
|
||||||
<meta name="theme-color" content="#fff">
|
<meta name="theme-color" content="#fff">
|
||||||
|
|||||||
@@ -9,32 +9,32 @@
|
|||||||
"theme_color": "#002f65",
|
"theme_color": "#002f65",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/icons/128x128.png",
|
"src": "../icons/128x128.png",
|
||||||
"sizes": "128x128",
|
"sizes": "128x128",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/icons/144x144.png",
|
"src": "../icons/144x144.png",
|
||||||
"sizes": "144x144",
|
"sizes": "144x144",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/icons/152x152.png",
|
"src": "../icons/152x152.png",
|
||||||
"sizes": "152x152",
|
"sizes": "152x152",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/icons/192x192.png",
|
"src": "../icons/192x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/icons/256x256.png",
|
"src": "../icons/256x256.png",
|
||||||
"sizes": "256x256",
|
"sizes": "256x256",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/icons/512x512.png",
|
"src": "../icons/512x512.png",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user