import pug from '@vituum/vite-plugin-pug'
export default {
plugins: [
pug()
],
build: {
rollupOptions: {
input: ['index.pug.html']
}
}
}
<!-- index.pug -->
include /path/to/template.pug
or
<!-- index.json -->
{
"template": "path/to/template.pug",
"title": "Hello world"
}