Prevent manifest.json from being inlined (#1359)

* Disable asset inlining

* Prevent `manifest.json` from being inlined

* Update backtick to single quote in vite.config.js

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
This commit is contained in:
greentore 2023-08-03 06:23:28 +02:00 committed by GitHub
parent 1adee07127
commit 34b2901566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -27,7 +27,7 @@
<link id="favicon" rel="shortcut icon" href="./public/favicon.ico" /> <link id="favicon" rel="shortcut icon" href="./public/favicon.ico" />
<link rel="manifest" href="./public/manifest.json" /> <link rel="manifest" href="/manifest.json" />
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<meta name="application-name" content="Cinny" /> <meta name="application-name" content="Cinny" />
<meta name="apple-mobile-web-app-title" content="Cinny" /> <meta name="apple-mobile-web-app-title" content="Cinny" />

View file

@ -21,10 +21,14 @@ const copyFiles = {
src: 'config.json', src: 'config.json',
dest: '', dest: '',
}, },
{
src: 'public/manifest.json',
dest: '',
},
{ {
src: 'public/res/android', src: 'public/res/android',
dest: 'public/', dest: 'public/',
} },
], ],
} }