2026-02-25 18:49:41 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2026-02-26 20:26:22 +08:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
2026-02-25 18:49:41 +08:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [vue()],
|
2026-02-26 20:26:22 +08:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
less: {
|
|
|
|
|
additionalData: `@import "@/assets/variables.less";`,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-25 18:49:41 +08:00
|
|
|
})
|