bettertend/frontend/vite.config.js

36 lines
717 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vuetify from 'vite-plugin-vuetify'
import Icons from 'unplugin-icons/vite'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [
vue(),
vuetify({ autoImport: true }),
Icons({
compiler: 'vue3',
autoInstall: true
})
],
optimizeDeps: {
include: ['feather-icons', 'highlight.js']
},
define: {
global: 'globalThis'
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 5137,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
}
})