vite-pwa / vite-plugin-pwa

Zero-config PWA for Vite

Home Page:https://vite-pwa-org.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to parse HTML; URI malformed with Python injection

Fleeck opened this issue · comments

Hi, we generate manifest based on user id in runtime. But the plugin won't run the build, giving me the error above. Any solution to this?

Code in index.html
<link rel="manifest" href="{% url 'wb_manifest_json' token_id=token_id %}" crossorigin="use-credentials" />

@Fleeck can you provide the full error?

from the stacktrace it seems the problem is on vite, not in the plugin, maybe you may ask on vite discord server

You are correct. If I comment out the plugin it throws via [vite:build-html]