From db365a5eff31c040c42463df4966bf34a5de6a6d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 12 三月 2025 15:00:42 +0800
Subject: [PATCH] fix: 二期需求
---
apps/taro/config/index.js | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/apps/taro/config/index.js b/apps/taro/config/index.js
index 0e17760..6ded296 100644
--- a/apps/taro/config/index.js
+++ b/apps/taro/config/index.js
@@ -24,6 +24,12 @@
},
alias: {
'@': path.resolve(__dirname, '..', 'src'),
+ '@life-payment/components': path.resolve(
+ __dirname,
+ '..',
+ 'node_modules',
+ '@life-payment/components'
+ ),
},
sourceRoot: 'src',
outputRoot: `dist/${process.env.TARO_ENV}`,
@@ -92,7 +98,7 @@
url: {
enable: true,
config: {
- limit: 1024, // 璁惧畾杞崲灏哄涓婇檺
+ limit: 2024, // 璁惧畾杞崲灏哄涓婇檺
},
},
cssModules: {
@@ -187,6 +193,17 @@
h5: {
publicPath: '/',
staticDirectory: 'static',
+ router: {
+ mode: 'browser',
+ },
+ devServer: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:57190', // 鐩爣鏈嶅姟鍣ㄥ湴鍧�
+ changeOrigin: true,
+ },
+ },
+ },
postcss: {
autoprefixer: {
enable: true,
@@ -195,7 +212,7 @@
url: {
enable: true,
config: {
- limit: 1024, // 璁惧畾杞崲灏哄涓婇檺
+ limit: 2024, // 璁惧畾杞崲灏哄涓婇檺
},
},
cssModules: {
@@ -206,6 +223,10 @@
},
},
},
+ htmlPluginOption: {
+ favicon: './public/logo-v.png',
+ },
+ useHtmlComponents: true,
webpackChain(chain, webpack) {
chain.plugin('unplugin-auto-import').use(
AutoImport({
--
Gitblit v1.9.1