fix build process
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s

This commit is contained in:
isUnknown 2026-01-27 18:15:34 +01:00
parent be7bb66e70
commit c7e751695f
3 changed files with 21 additions and 18 deletions

View file

@ -4,26 +4,22 @@ import vue from '@vitejs/plugin-vue';
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
publicDir: false, // Les assets statiques sont gérés par Kirby dans public/
base: '/',
build: {
outDir: 'dist/assets/dist',
emptyOutDir: true,
manifest: false,
outDir: 'dist',
minify: false,
rollupOptions: {
output: {
entryFileNames: 'index.js',
chunkFileNames: '[name].js',
entryFileNames: 'assets/dist/index.js',
chunkFileNames: 'assets/dist/[name].js',
assetFileNames: (assetInfo) => {
// Le CSS principal doit s'appeler index.css pour correspondre à header.php
if (assetInfo.name && assetInfo.name.endsWith('.css')) {
return 'index.css';
return 'assets/dist/index.css';
}
return '[name].[ext]';
return 'assets/dist/[name].[ext]';
},
},
},
build: {
minify: false,
},
},
});