HealthSystem/vite.config.js

36 lines
699 B
JavaScript
Raw Normal View History

2024-12-15 09:05:06 +00:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
server: {
host: '0.0.0.0',
port: 3000,
2024-12-20 12:51:12 +00:00
https: false,
2024-12-15 09:05:06 +00:00
open: true,
cors: true,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/styles/element/index.scss" as *;`,
2024-12-20 12:51:12 +00:00
api: "modern-compiler"
2024-12-15 09:05:06 +00:00
}
}
}
})