Home

Awesome

<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-plugin-pug.svg" alt="node compatility"></a>

⚡️🐕 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"
}

Requirements