@vituum/vite-plugin-pug
v1.1.0
Published
<a href="https://npmjs.com/package/@vituum/vite-plugin-pug"><img src="https://img.shields.io/npm/v/@vituum/vite-plugin-pug.svg" alt="npm package"></a> <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituum/vite-plu
Downloads
671
Readme
⚡️🐕 VitePug
import pug from '@vituum/vite-plugin-pug'
export default {
plugins: [
pug()
],
build: {
rollupOptions: {
input: ['index.pug.html']
}
}
}
Basic usage
<!-- index.pug -->
include /path/to/template.pug
or
<!-- index.json -->
{
"template": "path/to/template.pug",
"title": "Hello world"
}