vite-plugin-kirby-template-sugar
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

Kirby Template Sugar (Vite Plugin)

For a complete setup checkout the example.

Installation

npm i vite-plugin-kirby-template-sugar -D

Usage

// vite.config.js
import kirbyTemplateSugar from 'vite-plugin-kirby-template-sugar'

// Compile the snippets and templates from `src` to `site`.
// Note: paths are relative to vite's root.
export default {
  root: 'src',

  plugins: [
    kirbyTemplateSugar('{templates,snippets}/*.kirby', { outDir: '../site' }),
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-kirby-template-sugar

Weekly Downloads

5

Version

0.4.1

License

MIT

Unpacked Size

3.83 kB

Total Files

6

Last publish

Collaborators

  • arnoson