2024-01-08 12:23:57 -05:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
2024-01-11 13:46:08 -05:00
|
|
|
import {proxy} from "./proxy.js";
|
2024-01-08 12:23:57 -05:00
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2024-01-23 15:09:44 -05:00
|
|
|
base: "/static/app/dist",
|
2024-01-08 12:23:57 -05:00
|
|
|
plugins: [
|
|
|
|
vue(),
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server:{
|
|
|
|
proxy: {
|
2024-01-11 13:46:08 -05:00
|
|
|
'/api': proxy
|
2024-01-08 12:23:57 -05:00
|
|
|
}
|
2024-01-23 15:09:44 -05:00
|
|
|
},
|
|
|
|
build: {
|
|
|
|
rollupOptions: {
|
|
|
|
output: {
|
|
|
|
entryFileNames: `assets/[name].js`,
|
|
|
|
chunkFileNames: `assets/[name].js`,
|
|
|
|
assetFileNames: `assets/[name].[ext]`
|
|
|
|
}
|
|
|
|
}
|
2024-01-08 12:23:57 -05:00
|
|
|
}
|
|
|
|
})
|