# ⚡ Vite Plugin (for single and multi-page sites)

**URL:** <https://forum.getkirby.com/t/vite-plugin-for-single-and-multi-page-sites/21542>\
**Category:** Plugins\
**Tags:** v3\
**Created:** [March 10, 2021, 12:06pm UTC](https://forum.getkirby.com/t/vite-plugin-for-single-and-multi-page-sites/21542 "2021-03-10T12:06:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnoson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/arnoson/32/6155_2.png) [@arnoson](https://forum.getkirby.com/u/arnoson)\
**Post date:** [March 10, 2021, 12:06pm UTC](https://forum.getkirby.com/t/vite-plugin-for-single-and-multi-page-sites/21542/1 "2021-03-10T12:06:03Z")

</div>

I’ve just noticed that resently [another Kirby Vite plugin](https://forum.getkirby.com/t/kirby-3-vite-js/21495) has been shared by @flokosiol 🎉 but still wanted to share my solution:

[Kirby Vite](https://github.com/arnoson/kirby-vite) is a set of vite helper functions that work both with single page und multi page setups.

```html
<html>
  <head>
    <?= vite()->client() ?>
    <?= vite()->css() ?>
  </head>
  <body>
    <?= vite()->js() ?>
  </body>
</html>

```

Use one of the kits to get started:

- [basic kit](https://github.com/arnoson/kirby-vite-basic-kit)
- [multi-page kit](https://github.com/arnoson/kirby-vite-multi-page-kit/)

Together with [vite live reload plugin](https://github.com/arnoson/vite-plugin-live-reload) your dev server gets also reloaded as soon as you change a kirby specific file:

```js
liveReload('public/site/(templates|snippets|controllers|models)/**/*.php')

```
