From c8c2f28f9008989f8035da5e78c262b326707065 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 22 五月 2025 17:04:39 +0800
Subject: [PATCH] Merge branch 'dev-ui' of http://120.26.58.240:8888/r/LifePaymentFront into dev-ui
---
apps/taro/config/index.js | 35 +++++++++++++++++++++++++++++++----
1 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js
index f29f8a6..3ddf2cc 100644
--- a/apps/taro/config/index.js
+++ b/apps/taro/config/index.js
@@ -98,7 +98,7 @@
url: {
enable: true,
config: {
- limit: 1024, // 璁惧畾杞崲灏哄涓婇檺
+ limit: 2024, // 璁惧畾杞崲灏哄涓婇檺
},
},
cssModules: {
@@ -116,7 +116,13 @@
chain.plugin('unplugin-auto-import').use(
AutoImport({
- imports: ['vue', 'pinia', 'vue-router', { '@/constants': ['RouterPath'] }],
+ imports: [
+ 'vue',
+ 'pinia',
+ 'vue-router',
+ { '@/constants': ['RouterPath'] },
+ { '@/utils': ['RouteHelper'] },
+ ],
eslintrc: {
enabled: true, // Default `false`
filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
@@ -193,6 +199,17 @@
h5: {
publicPath: '/',
staticDirectory: 'static',
+ router: {
+ mode: 'browser',
+ },
+ devServer: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:58190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧�
+ changeOrigin: true,
+ },
+ },
+ },
postcss: {
autoprefixer: {
enable: true,
@@ -201,7 +218,7 @@
url: {
enable: true,
config: {
- limit: 1024, // 璁惧畾杞崲灏哄涓婇檺
+ limit: 2024, // 璁惧畾杞崲灏哄涓婇檺
},
},
cssModules: {
@@ -212,10 +229,20 @@
},
},
},
+ htmlPluginOption: {
+ favicon: './public/logo-v.png',
+ },
+ useHtmlComponents: true,
webpackChain(chain, webpack) {
chain.plugin('unplugin-auto-import').use(
AutoImport({
- imports: ['vue', 'pinia', 'vue-router', { '@/constants': ['RouterPath'] }],
+ imports: [
+ 'vue',
+ 'pinia',
+ 'vue-router',
+ { '@/constants': ['RouterPath'] },
+ { '@/utils': ['RouteHelper'] },
+ ],
eslintrc: {
enabled: true, // Default `false`
filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
--
Gitblit v1.9.1