vite-include-html-plugin

0.0.3 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i vite-include-html-plugin

Weekly Downloads

70

Version

0.0.3

License

none

Unpacked Size

1.88 kB

Total Files

3

Last publish

Collaborators

  • themrdev