🎈 perf: 优化全局变量

This commit is contained in:
2022-12-08 22:37:43 +08:00
parent af3eeaf9a1
commit 3e0fd03638
6 changed files with 16 additions and 5 deletions
+3
View File
@@ -6,6 +6,9 @@ module.exports = {
},
defineConstants: {
CURRENT_BASE_URL: '"https://test.zzfzyc.com/lymarket"',
CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://test.zzfzyc.com"',
CURRENT_PAY_H5_CODE_URL: '"https://test.zzfzyc.com/cashier"',
CURRENT_IMG_CND_Prefix: '"https://test.cdn.zzfzyc.com"',
},
mini: {
// optimizeMainPackage: {
+1
View File
@@ -9,6 +9,7 @@ module.exports = {
CURRENT_BASE_URL: '"https://pre.zzfzyc.com/lymarket"',
CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://pre.zzfzyc.com"',
CURRENT_PAY_H5_CODE_URL: '"https://pre.zzfzyc.com/cashier"',
CURRENT_IMG_CND_Prefix: '"https://test.cdn.zzfzyc.com"',
},
mini: {
optimizeMainPackage: {
+3
View File
@@ -7,6 +7,9 @@ module.exports = {
outputRoot: 'build',
defineConstants: {
CURRENT_BASE_URL: '"https://www.zzfzyc.com/lymarket"',
CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://www.zzfzyc.com"',
CURRENT_PAY_H5_CODE_URL: '"https://www.zzfzyc.com/cashier"',
CURRENT_IMG_CND_Prefix: '"https://cdn.zzfzyc.com"',
},
mini: {
optimizeMainPackage: {