From 39ffbd91edcc1532e43683f5dd2b477123f0b22e Mon Sep 17 00:00:00 2001 From: Alex LaFroscia Date: Sat, 20 Mar 2021 15:18:11 -0400 Subject: [PATCH] feat: add information about the Vite plugin --- src/installation/integrations.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/installation/integrations.md b/src/installation/integrations.md index 7f494c50..837355f4 100644 --- a/src/installation/integrations.md +++ b/src/installation/integrations.md @@ -64,3 +64,17 @@ https://www.npmjs.com/package/@inventory/parcel-plugin-handlebars TODO: Write text here https://www.npmjs.com/package/parcel-plugin-handlebars-precompile + +## Vite: vite-plugin-handlebars + +The [vite-plugin-handlebars](https://github.com/alexlafroscia/vite-plugin-handlebars) package for Vite 2 allows for +running your HTML files through the Handlebars compiler. Once installed, it can be added to Vite like so: + +```js +// vite.config.js +import handlebars from "vite-plugin-handlebars"; + +export default { + plugins: [handlebars()], +}; +```