All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s
25 lines
683 B
JavaScript
25 lines
683 B
JavaScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: '/',
|
|
build: {
|
|
outDir: 'dist',
|
|
minify: false,
|
|
rollupOptions: {
|
|
output: {
|
|
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 'assets/dist/index.css';
|
|
}
|
|
return 'assets/dist/[name].[ext]';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|