2fe835d8d2
根据全站性能审计继续降低低频组件请求、重复 DOM 与重复缓存 URL 成本。 - 二维码组件改为详情弹窗实际渲染时异步加载 - 文件管理仅挂载当前断点对应的移动列表或桌面表格 - Vite 静态与动态资源统一使用 /theme-assets/ 前缀 - 已通过架构检查、类型检查、ESLint 和生产构建
22 lines
505 B
TypeScript
22 lines
505 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
import tailwindcss from 'tailwindcss'
|
|
import autoprefixer from 'autoprefixer'
|
|
export default defineConfig({
|
|
base: '/theme-assets/',
|
|
plugins: [vue(), vueJsx()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwindcss, autoprefixer]
|
|
}
|
|
}
|
|
})
|