Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
How can I disable conversion of .json/.webmanifest url into base64 string?

I have a problem that has been bothering me for a while now. I have a vite-react-typescript project in VSCode, with a link in the index.html page to a webmanifest. This is basically a json file with a different extention.

When I build my app, the index.html output file contains the meta tag, however instead of referencing the path of the .webmanifest file, it has converted the entire file into base64. Because of this some browsers cannot find the .manifest file and therefore the website cannot be installed as a PWA.

I assume the problem/possible solution lies in the compiler/build options of vite, however I don't know how to fix this auto-conversion.

Here is the github repo: https://github.com/PluginDev-A/Website the compiled index.html file is in the dist directory, the original index.html file is in the main directory. The problem is on line 6 of both files

**It does not matter whether the file-extention is .json or .webmanifest, both urls get converted upon build

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

That file should be probably placed in public directory because it is:

  • Never referenced in source code (e.g. robots.txt)
  • Must retain the exact same file name (without hashing)

And it should be referenced from index.html with absolute path

<link rel="manifest" href="/manifest.webmanifest">
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!