Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

159
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda