update icon and move serviceworker to root to fix scope

This commit is contained in:
Anthony 2021-06-02 20:38:57 +02:00 committed by Jeremy Kauffman
parent ab83357fd0
commit 9798bf14f4
3 changed files with 6 additions and 1 deletions

View file

@ -64,7 +64,7 @@
<link rel="manifest" href="./public/pwa/manifest.json"/> <link rel="manifest" href="./public/pwa/manifest.json"/>
<link rel="apple-touch-icon" sizes="180x180" href="./public/pwa/icon-180.png"> <link rel="apple-touch-icon" sizes="180x180" href="./public/pwa/icon-180.png">
<script src="./public/pwa/serviceWorker.js"></script> <script src="./serviceWorker.js"></script>
<!-- VARIABLE_HEAD_BEGIN --> <!-- VARIABLE_HEAD_BEGIN -->
<!-- VARIABLE_HEAD_END --> <!-- VARIABLE_HEAD_END -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -61,6 +61,11 @@ const copyWebpackCommands = [
from: `${STATIC_ROOT}/pwa/`, from: `${STATIC_ROOT}/pwa/`,
to: `${DIST_ROOT}/public/pwa/`, to: `${DIST_ROOT}/public/pwa/`,
}, },
// move serviceWorker to directory root
{
from: `${STATIC_ROOT}/pwa/serviceWorker.js`,
to: `${DIST_ROOT}/`,
},
]; ];
const CUSTOM_OG_PATH = `${CUSTOM_ROOT}/v2-og.png`; const CUSTOM_OG_PATH = `${CUSTOM_ROOT}/v2-og.png`;