mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 05:23:48 +00:00
41 lines
804 B
JavaScript
41 lines
804 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
import autoprefixer from 'autoprefixer'
|
|
import tailwind from 'tailwindcss'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwind(), autoprefixer()],
|
|
},
|
|
},
|
|
server: {
|
|
port: 8000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:9000',
|
|
},
|
|
'/logout': {
|
|
target: 'http://127.0.0.1:9000',
|
|
},
|
|
'/uploads': {
|
|
target: 'http://127.0.0.1:9000',
|
|
},
|
|
'/ws': {
|
|
target: 'ws://127.0.0.1:9000',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
})
|