Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1014 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 1014 Bytes

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