Prevent `manifest.json` from being inlined (#1359)
authorgreentore <117551249+greentore@users.noreply.github.com>
Thu, 3 Aug 2023 04:23:28 +0000 (06:23 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 04:23:28 +0000 (09:53 +0530)
* 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>
index.html
vite.config.js

index 36c5740ae4c2f97261a7a3e6ccc9b482b63a8eb4..6bc955c146da36eef7df1a125dcc11be0ceefe12 100644 (file)
@@ -27,7 +27,7 @@
 
     <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="application-name" content="Cinny" />
     <meta name="apple-mobile-web-app-title" content="Cinny" />
index 6a443166dc020e25390a91a4c142464ea15d22d1..f09aa71e876ca7c24614caa3c4e2d019a74ac3ac 100644 (file)
@@ -21,10 +21,14 @@ const copyFiles = {
       src: 'config.json',
       dest: '',
     },
+    {
+      src: 'public/manifest.json',
+      dest: '',
+    },
     {
       src: 'public/res/android',
       dest: 'public/',
-    }
+    },
   ],
 }