@web2paper/vite-plugin-custom-index
v0.0.2
Published
Vite plugin for custom index file.
Readme
This is a Vite plugin for Web2Paper. It allows customizing the built index.html file.
It is used to produce the template.* file expected by Web2Paper in document models.
This package is part of the @web2paper/modeling-* ecosystem.
⚠️ Web2Paper and its ecosystem are under construction. Expect breaking change to API and bugs.
Usage
// vite.config.ts
import {defineConfig} from 'vite'
import {viteWeb2PaperCustomIndex} from "@web2paper/vite-plugin-custom-index";
export default defineConfig({
// [...]
plugins: [
// [...]
viteWeb2PaperCustomIndex({
index: "index.html",
distIndex: "template.html"
}),
// [...]
],
})