Wiki source code of Configure Vite
Last modified by Manuel Leduc on 2026/03/23 13:57
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1. Add a ##vite.config.ts## file aside the ##package.json## file of the package | ||
| 2 | 1. Import a configuration help from [[viteconfig>>doc:documentation.xs.dev.front-end.tools.vite-shared-configurations.WebHome]] (e.g., {{code language="typescript"}}import { generateConfigVue } from "@xwiki/platform-tool-viteconfig";{{/code}}) | ||
| 3 | 1. Use and export the configuration {{code language="typescript"}}export default generateConfigVue(import.meta.url);{{/code}} |