This is a basic plugin that allows you to import other html files into one file. (Only works for vanilla)
npm i vite-plugin-include-html -D
vite.config.js
file
import includeHtml from "vite-plugin-include-html";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [includeHtml()],
});
<include src="myfile.html"></include>
<div>
<h1>This is cool</h1>
<p>Yoo what is going on in here this is a test</p>
</div>