richardtallent / vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources
MIT License
808 stars 53 forks source link

manifest.json usage in index.html #87

Closed mantaspuidokas closed 8 months ago

mantaspuidokas commented 8 months ago

I'm trying to include manifest.json file inside the index.html, but I'm getting CORS error:

image

Is manifest file usage possible with this plugin?

richardtallent commented 8 months ago

Sounds like you would have to embed it manually as a data URL rather than just importing it and having vite bundle it directly. Closing, since this is a CORS issue, not something specific to this plugin.