2025-10-02 09:53:59 +02:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
2024-12-20 10:40:44 +01:00
|
|
|
|
2025-10-08 14:34:22 +02:00
|
|
|
export default defineConfig(({ mode }) => {
|
|
|
|
|
return {
|
|
|
|
|
plugins: [vue()],
|
|
|
|
|
base: '/',
|
|
|
|
|
build: {
|
|
|
|
|
outDir: 'dist',
|
|
|
|
|
rollupOptions: {
|
|
|
|
|
output: {
|
|
|
|
|
entryFileNames: 'assets/dist/[name].js',
|
|
|
|
|
assetFileNames: 'assets/dist/[name].[ext]',
|
|
|
|
|
},
|
2024-12-20 10:40:44 +01:00
|
|
|
},
|
2025-10-08 14:34:22 +02:00
|
|
|
sourcemap: mode === 'staging',
|
|
|
|
|
minify: mode === 'production' ? 'esbuild' : false,
|
2024-12-20 10:40:44 +01:00
|
|
|
},
|
2025-10-08 14:34:22 +02:00
|
|
|
server: {
|
2026-01-15 10:31:31 +01:00
|
|
|
cors: true,
|
2025-10-08 14:34:22 +02:00
|
|
|
watch: {
|
|
|
|
|
ignored: [
|
|
|
|
|
'**/node_modules/**',
|
|
|
|
|
'**/.git/**',
|
|
|
|
|
'**/.cache/**',
|
|
|
|
|
'**/.vite/**',
|
|
|
|
|
'**/dist/**',
|
|
|
|
|
'**/*.log',
|
|
|
|
|
'**/.idea/**',
|
|
|
|
|
'**/.vscode/**',
|
|
|
|
|
'**/public/assets/**',
|
|
|
|
|
'**/local/**',
|
|
|
|
|
'/public/**',
|
|
|
|
|
],
|
|
|
|
|
},
|
2025-10-02 09:53:59 +02:00
|
|
|
},
|
2025-10-08 14:34:22 +02:00
|
|
|
};
|
2024-12-20 10:40:44 +01:00
|
|
|
});
|