@vituum/vite-plugin-pug
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

npm package node compatility

⚡️🐕 VitePug

import pug from '@vituum/vite-plugin-pug'

export default {
    plugins: [
        pug()
    ],
    build: {
        rollupOptions: {
            input: ['index.pug.html']
        }
    }
}
  • Read the docs to learn more about the plugin options.
  • Use with Vituum to get multi-page support.

Basic usage

<!-- index.pug -->
include /path/to/template.pug

or

<!-- index.json  -->
{
  "template": "path/to/template.pug",
  "title": "Hello world"
}

Requirements

Readme

Keywords

none

Package Sidebar

Install

npm i @vituum/vite-plugin-pug

Weekly Downloads

46

Version

1.1.0

License

none

Unpacked Size

9.24 kB

Total Files

5

Last publish

Collaborators

  • evromalarkey