donnikitos / vite-plugin-html-inject

Split your ViteJS index.html into smaller pieces
https://www.npmjs.com/package/vite-plugin-html-inject
MIT License
59 stars 3 forks source link

Vite 5 fails to build because of the syntax #8

Closed eye-wave closed 10 months ago

eye-wave commented 10 months ago
ERROR  [vite:build-html] Unable to parse HTML; parse5 error code unexpected-equals-sign-before-attribute-name
34 |    <body>
35 |      <main id="app">
36 |        <load ="" />
   |              ^
37 |      </main>
38 |
eye-wave commented 10 months ago

i don't understand the syntax choice. This could have been easily avoided like this:

<load src="html/component.html" />
donnikitos commented 10 months ago

Initially it was chosen to distinguish the tag from regular HTML. In the aftermath however, I agree, it should be <load src="html/component.html" /> and will be updated in the future: See issue #5.