mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-23 05:11:57 +00:00
57 lines
1.6 KiB
JavaScript
57 lines
1.6 KiB
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'
|
|
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 600,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
'vue-vendor': ['vue', 'vue-router', 'pinia'],
|
|
'radix': ['radix-vue', 'reka-ui'],
|
|
'icons': ['lucide-vue-next', '@radix-icons/vue'],
|
|
'utils': ['@vueuse/core', 'clsx', 'tailwind-merge', 'class-variance-authority'],
|
|
'charts': ['@unovis/ts', '@unovis/vue'],
|
|
'editor': ['@tiptap/vue-3', '@tiptap/starter-kit', '@tiptap/extension-image', '@tiptap/extension-link', '@tiptap/extension-placeholder', '@tiptap/extension-table', '@tiptap/extension-table-cell', '@tiptap/extension-table-header', '@tiptap/extension-table-row'],
|
|
'forms': ['vee-validate', '@vee-validate/zod', 'zod'],
|
|
'table': ['@tanstack/vue-table'],
|
|
'misc': ['axios', 'date-fns', 'mitt', 'qs', 'vue-i18n']
|
|
}
|
|
}
|
|
}
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
}) |