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

1.1.0 • Public • Published

npm package node compatility

⚡💡️ ViteNunjucks

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

export default {
    plugins: [
        nunjucks()
    ],
    build: {
        rollupOptions: {
            input: ['index.njk.html']
        }
    }

}
  • Read the docs to learn more about the plugin options.
  • Use with Vituum to get multi-page support.

Basic usage

or

<!-- index.njk with index.njk.json -->
{{ title }}

or

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

Requirements

Dependents (1)

Package Sidebar

Install

npm i @vituum/vite-plugin-nunjucks

Weekly Downloads

50

Version

1.1.0

License

none

Unpacked Size

8.68 kB

Total Files

5

Last publish

Collaborators

  • evromalarkey