feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
+12
-16
@@ -19,12 +19,8 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import path from 'node:path';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import pkg from '@douyinfe/vite-plugin-semi';
|
||||
import { defineConfig, loadEnv, transformWithEsbuild } from 'vite';
|
||||
|
||||
// @douyinfe/vite-plugin-semi 是 CommonJS 包,具名导出挂在 default 上。
|
||||
const { vitePluginSemi } = pkg;
|
||||
|
||||
/**
|
||||
* 未配置代理变量时保留原有联调地址,兼容自定义 mode。
|
||||
*/
|
||||
@@ -105,20 +101,9 @@ export default defineConfig(({ mode }) => {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'~': path.resolve(__dirname, 'node_modules'),
|
||||
'@douyinfe/semi-theme-default': path.resolve(
|
||||
__dirname,
|
||||
'node_modules/@douyinfe/semi-theme-default',
|
||||
),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
jsxInJsPlugin(),
|
||||
react(),
|
||||
vitePluginSemi({
|
||||
cssLayer: true,
|
||||
}),
|
||||
analyticsPlugin(env),
|
||||
],
|
||||
plugins: [jsxInJsPlugin(), react(), analyticsPlugin(env)],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
loader: {
|
||||
@@ -150,6 +135,17 @@ export default defineConfig(({ mode }) => {
|
||||
server: {
|
||||
// 监听所有网卡,便于局域网与容器内访问
|
||||
host: '0.0.0.0',
|
||||
port: '5174',
|
||||
// Browser reports contain HTML; watching them would reload active acceptance pages.
|
||||
watch: {
|
||||
ignored: [
|
||||
'**/logs/**',
|
||||
'**/playwright-report/**',
|
||||
'**/test-results/**',
|
||||
'**/blob-report/**',
|
||||
'**/e2e/*-snapshots/**',
|
||||
],
|
||||
},
|
||||
proxy: {
|
||||
// 以下前缀统一转发到同一个后端,其中 /v1 额外开启 WebSocket
|
||||
'/api': { target: proxyTarget, changeOrigin: true },
|
||||
|
||||
Reference in New Issue
Block a user