Skip to content

βš‘οΈπŸ• Vite plugin for Pug, transforms pug templates into HTML

License

Notifications You must be signed in to change notification settings

vituum/vite-plugin-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 17, 2023
ec22a21 Β· Nov 17, 2023

History

11 Commits
Jun 27, 2023
Jun 27, 2023
Aug 24, 2022
Aug 24, 2022
Jun 27, 2023
Nov 17, 2023
Nov 17, 2023
Jun 27, 2023

Repository files navigation

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

About

βš‘οΈπŸ• Vite plugin for Pug, transforms pug templates into HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published