
Use Kirby CMS together with Vite
If you're looking to streamline your Kirby frontend development workflow, bundling your assets with Vite might just be the solution you need. This combination offers a modern approach to managing your assets, allowing for both development and production modes that enhance speed and efficiency. Whether you're starting from scratch with the basic starter kit or incorporating it into an existing setup, the plugin provides versatile features that cater to various needs.
The integration makes asset management straightforward by allowing the use of helper functions within your template files. With a focus on ensuring smooth configurations and accessibility to your assets, this tool is particularly beneficial for developers working on multi-page setups or needing to support legacy browsers.
.dev file for easy management.vite.config.js, providing flexibility and efficiency.vite()->file() to access and preload assets, ensuring faster load times and better performance.@vitejs/plugin-legacy for better compatibility with older browsers.