0.0.3 • Published 6 months ago

vite-include-html-plugin v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

Vite Include Html File

This is a basic plugin that allows you to import other html files into one file. (Only works for vanilla)

Installation

npm i vite-plugin-include-html -D

Usage

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>

Output

<div>
  <h1>This is cool</h1>
  <p>Yoo what is going on in here this is a test</p>
</div>
0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago