mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 04:54:58 +08:00
32 lines
622 B
TypeScript
32 lines
622 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: '/medical/',
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
terserOptions: {
|
|
compress: {
|
|
//生产环境时移除console.log()
|
|
drop_console: true,
|
|
},
|
|
}
|
|
},
|
|
css:{
|
|
preprocessorOptions:{
|
|
scss:{
|
|
additionalData: '@import "./src/assets/css/variable.scss";' //引入scss文件
|
|
}
|
|
}
|
|
}
|
|
})
|