Configure Vite

Last modified by Manuel Leduc on 2026/03/23 13:57

Steps

  1. Add a vite.config.ts file aside the package.json file of the package
  2. Import a configuration help from viteconfig (e.g., import { generateConfigVue } from "@xwiki/platform-tool-viteconfig";)
  3. Use and export the configuration export default generateConfigVue(import.meta.url);

Related

https://vitest.dev/config/

Get Connected