# Plugin Vite — CP Asset Bundles with Vite How to use Vite for building and serving JavaScript and CSS in Craft CMS 5 plugin control panel pages. This is separate from site-level Vite (covered in the `craft-site` skill's `vite-buildchain.md`). ## Documentation - nystudio107/craft-plugin-vite: https://github.com/nystudio107/craft-plugin-vite - Craft AssetBundle: https://craftcms.com/docs/5.x/extend/asset-bundles.html Craft 5 does not have native Vite support for plugins. The built-in `Webpack` service is webpack-oriented. Plugins use `nystudio107/craft-plugin-vite` for Vite integration. ## Common Pitfalls - **Using Vite for element index JS** — `craft-plugin-vite` adds `type="module"` to all `