1

I realized that, by default, the umi project does not have manifest.json. I added the file to the public folder manually. Then, after compiling the application through the umi build command, my custom file is merged with thedist folder.

But is there any way to add the meta header to the self-generated index.html file?

I have not been able to find anything in the UMI docs. My guess, I need to build a script to insert it into the file after it is fully compiled.

Anything would be helpfull.

blueseal
  • 2,726
  • 6
  • 26
  • 41
ivrusson
  • 11
  • 1

1 Answers1

0

If you are using the pro.ant.design, you can find the index.html in /src/pages/document.ejs. It is a templated version of the index page.

Bolein95
  • 2,947
  • 2
  • 26
  • 31