Home

Awesome

<a href="https://npmjs.com/package/@vituum/vite-plugin-liquid"><img src="https://img.shields.io/npm/v/@vituum/vite-plugin-liquid.svg" alt="npm package"></a> <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituum/vite-plugin-liquid.svg" alt="node compatility"></a>

⚡️💧 ViteLiquid

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

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

Basic usage

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

or

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

Requirements