mirror of
https://github.com/LiuYuYang01/ThriveX-Admin.git
synced 2026-05-06 21:50:31 +08:00
- 在 vite.config.js 中更新 SCSS 配置,简化样式导入路径。 - 在 dashboard 页面中重构骨架屏逻辑,提升加载时的用户体验。 - 在 login 页面中调整背景样式和登录卡片样式,增强视觉效果和用户交互体验。
30 lines
666 B
JavaScript
Executable File
30 lines
666 B
JavaScript
Executable File
/* eslint-disable no-undef */
|
|
import { defineConfig } from 'vite'
|
|
import sassDts from 'vite-plugin-sass-dts';
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), sassDts()],
|
|
// 配置快捷路径
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'~': path.resolve(__dirname, 'src')
|
|
},
|
|
},
|
|
// 配置scss样式自动引入
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
loadPaths: [path.resolve(__dirname, 'src/styles')],
|
|
additionalData: `@use "var.scss" as *;`
|
|
}
|
|
}
|
|
},
|
|
server: {
|
|
port: 9100,
|
|
},
|
|
})
|