2024-07-15 16:34:28 +02:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2024-07-16 17:01:09 +02:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
2024-07-15 16:34:28 +02:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [vue()],
|
|
|
|
server: {
|
|
|
|
hmr: {
|
|
|
|
host: 'localhost',
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
usePolling: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
outDir: 'assets/dist',
|
|
|
|
rollupOptions: {
|
2024-10-15 10:09:10 +02:00
|
|
|
input: {
|
|
|
|
main: 'assets/js/main.js',
|
|
|
|
redirect: 'assets/js/redirect'
|
|
|
|
},
|
2024-07-15 16:34:28 +02:00
|
|
|
output: {
|
2024-10-15 10:09:10 +02:00
|
|
|
entryFileNames: '[name].js',
|
2024-07-15 16:34:28 +02:00
|
|
|
assetFileNames: 'main.css'
|
|
|
|
}
|
|
|
|
}
|
2024-07-16 17:01:09 +02:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@api': fileURLToPath(new URL('api', import.meta.url)),
|
|
|
|
// '@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
// '@stores': fileURLToPath(new URL('./src/stores', import.meta.url)),
|
|
|
|
// '@components': fileURLToPath(new URL('./src/components', import.meta.url)),
|
|
|
|
// '@views': fileURLToPath(new URL('./src/views', import.meta.url)),
|
|
|
|
// // '@icons': fileURLToPath(new URL('./node_modules/vue-material-design-icons', import.meta.url)),
|
|
|
|
// '@node_modules': fileURLToPath(new URL('./node_modules', import.meta.url))
|
|
|
|
}
|
2024-07-15 16:34:28 +02:00
|
|
|
}
|
|
|
|
})
|