Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lassejlv/vite-include-html-plugin
- Owner: lassejlv
- Created: 2023-11-01T11:32:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T11:33:42.000Z (about 1 year ago)
- Last Synced: 2024-11-02T21:04:03.398Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```