Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lassejlv/vite-include-html-plugin

A vite plugin to import other html files into one html file
https://github.com/lassejlv/vite-include-html-plugin

Last synced: about 2 months ago
JSON representation

A vite plugin to import other html files into one html file

Awesome Lists containing this project

README

        

# 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

```bash
npm i vite-plugin-include-html -D
```

## Usage

`vite.config.js` file

```js
import includeHtml from "vite-plugin-include-html";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [includeHtml()],
});
```

```html

```

### Output

```html


This is cool


Yoo what is going on in here this is a test



```