| import { fileURLToPath, URL } from 'url'; |
| import { defineConfig } from 'vite'; |
| import vue from '@vitejs/plugin-vue'; |
| import vuetify from 'vite-plugin-vuetify'; |
|
|
| |
| export default defineConfig({ |
| plugins: [ |
| vue({ |
| template: { |
| compilerOptions: { |
| isCustomElement: (tag) => ['v-list-recognize-title'].includes(tag) |
| } |
| } |
| }), |
| vuetify({ |
| autoImport: true |
| }) |
| ], |
| resolve: { |
| alias: { |
| mermaid: 'mermaid/dist/mermaid.js', |
| '@': fileURLToPath(new URL('./src', import.meta.url)) |
| } |
| }, |
| css: { |
| preprocessorOptions: { |
| scss: {} |
| } |
| }, |
| build: { |
| sourcemap: false, |
| chunkSizeWarningLimit: 1024 * 1024 |
| }, |
| optimizeDeps: { |
| exclude: ['vuetify'], |
| entries: ['./src/**/*.vue'] |
| }, |
| server: { |
| host: '0.0.0.0', |
| port: 3000, |
| proxy: { |
| '/api': { |
| target: 'http://127.0.0.1:7860/', |
| changeOrigin: true, |
| ws: true |
| } |
| } |
| } |
| }); |
|
|