Skip to content

Commit

Permalink
Prevent manifest.json from being inlined (#1359)
Browse files Browse the repository at this point in the history
* Disable asset inlining

* Prevent `manifest.json` from being inlined

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

---------

Co-authored-by: Ajay Bura <[email protected]>
  • Loading branch information
greentore and ajbura authored Aug 3, 2023
1 parent 1adee07 commit 34b2901
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
6 changes: 5 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ const copyFiles = {
src: 'config.json',
dest: '',
},
{
src: 'public/manifest.json',
dest: '',
},
{
src: 'public/res/android',
dest: 'public/',
}
},
],
}

Expand Down

0 comments on commit 34b2901

Please sign in to comment.