2025-02-14 23:14:54 +08:00
|
|
|
import { defineConfig } from 'vite'
|
2025-03-13 23:52:31 +08:00
|
|
|
|
2025-02-14 23:14:54 +08:00
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
2025-03-13 23:52:31 +08:00
|
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
|
|
|
|
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
|
|
|
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
|
2025-02-14 23:14:54 +08:00
|
|
|
export default defineConfig({
|
2025-03-13 23:52:31 +08:00
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
scss: {
|
|
|
|
additionalData: `@import "./src/assets/styles/element/index.scss";` // 你的全局 SCSS 文件路径
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
|
|
|
|
vue(),
|
|
|
|
|
|
|
|
AutoImport({
|
|
|
|
|
|
|
|
resolvers: [ElementPlusResolver()],
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
Components({
|
|
|
|
|
|
|
|
resolvers: [ElementPlusResolver()],
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
})
|