1. 工作人员账号添加
2. 优化打包
3. 日志
4. 用户头像列表
This commit is contained in:
Zy
2026-10-21 08:59:48 +08:00
parent 5584ef1954
commit eeb842d278
36 changed files with 1514 additions and 602 deletions

View File

@@ -1,6 +1,7 @@
import {defineConfig, loadEnv} from 'vite';
import createPlugins from './vite/plugins/index.js';
import autoprefixer from 'autoprefixer'; // CSS 自动添加浏览器兼容性前缀
import autoprefixer from 'autoprefixer';
import zipPack from 'vite-plugin-zip-pack';
/**
* Vite 配置入口
@@ -36,7 +37,14 @@ export default defineConfig(({mode, command}) => {
// 插件列表,统一在 ./vite/plugins/index.ts 中定义
// 将 env 和 isBuild 传入,便于插件根据环境做差异化处理
// ========================================================
plugins: createPlugins(env, command === 'build'),
plugins: [
...createPlugins(env, command === 'build'),
zipPack({
inDir: 'dist',
outDir: './',
outFileName: 'dist.zip'
})
],
// ========================================================
// Rolldown 高级选项(Vite 8 底层默认使用 Rolldown 打包)