You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vite-include-html-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-include-html-plugin

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

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
90
91.49%
Maintainers
1
Weekly downloads
 
Created
Source

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>

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts