A vite plugin for WebC.
- Install webc and the plugin:
npm i -D vite-plugin-webc @11ty/webc
- Add the plugin to the vite config:
import { defineConfig } from 'vite';
import VitePluginWebc from 'vite-plugin-webc';
export default defineConfig({
plugins: [VitePluginWebc()],
});
- Define your .webc files anywhere in the
src/
directory and start using them in your html!