From d4326bc827bee53dc3c2a7829f19fe66269c94b9 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Tue, 4 Aug 2026 16:19:19 +0800 Subject: [PATCH] chore(config): add local 192.168.197.1 config and switch default env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增192.168.197.1:8050的本地开发配置项 2. 调整默认启用的环境配置为local-1 3. 修复package.json缩进格式并新增对应局域网调试的H5打包配置 --- .local.config.js | 10 ++- package.json | 174 +++++++++++++++++++++++++---------------------- 2 files changed, 99 insertions(+), 85 deletions(-) diff --git a/.local.config.js b/.local.config.js index 6a6543e..f969af9 100644 --- a/.local.config.js +++ b/.local.config.js @@ -56,9 +56,12 @@ const localDevConfig = ({ }, 'local-1': { // 测试平台 uniacid: 1, - domain: 'http://192.168.197.1:8050/', - // domain: 'http://localhost:8050/', + domain: 'http://localhost:8050/', }, + '192.168.197.1-1': { // 测试平台 + uniacid: 1, + domain: 'http://192.168.197.1:8050/', + }, 'local-11': { // 测试平台 uniacid: 11, domain: 'http://localhost:8050/', @@ -164,9 +167,10 @@ const localDevConfig = ({ // })['2724']; // 生物菌肥 // })['2811']; // 选择要使用的环境配置 // })['local-11']; // 选择要使用的环境配置 -})['248']; // 本地 +// })['248']; // 本地 // })['local-2']; // 本地 // })['local-11']; // 本地 +})['local-1']; // 本地 // })['1-test']; // test // })['test-12']; // test export default localDevConfig; \ No newline at end of file diff --git a/package.json b/package.json index c9ba57a..62a70ed 100644 --- a/package.json +++ b/package.json @@ -1,82 +1,92 @@ -{ - "scripts": { - "mp-weixin": "node scripts/mp-weixin.patch.js", - "i18n:check": "node scripts/i18n-check.js", - "test": "node scripts/test-gate.js", - "test:util": "node --test tests/util.test.js", - "prebuild": "npm run test", - "prestart": "npm run test" - }, - "devDependencies": { - "dart-sass": "^1.25.0", - "terser-webpack-plugin": "^5.3.10", - "zion-uniapp-mp-load-package": "^1.0.13" - }, - "dependencies": { - "jweixin-module": "^1.6.0" - }, - "uni-app": { - "scripts": { - "weixin": { - "title": "微信小程序自定义发行", - "env": { - "UNI_PLATFORM": "mp-weixin" - }, - "define": { - "MP_WEIXIN": true, - "PRODUCTION": true - } - }, - "h5-xcx20.5g-quickapp.com": { - "title": "H5-xcx20.5g-quickapp.com", - "env": { - "UNI_PLATFORM": "h5", - "UNI_APP_DOMAIN": "https://xcx20.5g-quickapp.com/" - }, - "define": { - "PRODUCTION": true - } - }, - "h5-xcx.aigc-quickapp.com": { - "title": "H5-xcx.aigc-quickapp.com", - "env": { - "UNI_PLATFORM": "h5", - "UNI_APP_DOMAIN": "https://xcx.aigc-quickapp.com/" - }, - "define": { - "PRODUCTION": true - } - }, - "h5-5g.aigc-quickapp.com": { - "title": "H5-5g.aigc-quickapp.com", - "env": { - "UNI_PLATFORM": "h5", - "UNI_APP_DOMAIN": "https://5g.aigc-quickapp.com/" - }, - "define": { - "PRODUCTION": true - } - }, - "h5-test.aigc-quickapp.com": { - "title": "H5-test.aigc-quickapp.com", - "env": { - "UNI_PLATFORM": "h5", - "UNI_APP_DOMAIN": "https://test.aigc-quickapp.com/" - }, - "define": { - "PRODUCTION": true - } - }, - "http://localhost:8050/": { - "title": "H5-localhost:8050", - "env": { - "UNI_PLATFORM": "h5", - "UNI_APP_DOMAIN": "http://localhost:8050/" - }, - "define": { - "PRODUCTION": true - } - } - } - } -} +{ + "scripts": { + "mp-weixin": "node scripts/mp-weixin.patch.js", + "i18n:check": "node scripts/i18n-check.js", + "test": "node scripts/test-gate.js", + "test:util": "node --test tests/util.test.js", + "prebuild": "npm run test", + "prestart": "npm run test" + }, + "devDependencies": { + "dart-sass": "^1.25.0", + "terser-webpack-plugin": "^5.3.10", + "zion-uniapp-mp-load-package": "^1.0.13" + }, + "dependencies": { + "jweixin-module": "^1.6.0" + }, + "uni-app": { + "scripts": { + "weixin": { + "title": "微信小程序自定义发行", + "env": { + "UNI_PLATFORM": "mp-weixin" + }, + "define": { + "MP_WEIXIN": true, + "PRODUCTION": true + } + }, + "h5-xcx20.5g-quickapp.com": { + "title": "H5-xcx20.5g-quickapp.com", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "https://xcx20.5g-quickapp.com/" + }, + "define": { + "PRODUCTION": true + } + }, + "h5-xcx.aigc-quickapp.com": { + "title": "H5-xcx.aigc-quickapp.com", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "https://xcx.aigc-quickapp.com/" + }, + "define": { + "PRODUCTION": true + } + }, + "h5-5g.aigc-quickapp.com": { + "title": "H5-5g.aigc-quickapp.com", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "https://5g.aigc-quickapp.com/" + }, + "define": { + "PRODUCTION": true + } + }, + "h5-test.aigc-quickapp.com": { + "title": "H5-test.aigc-quickapp.com", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "https://test.aigc-quickapp.com/" + }, + "define": { + "PRODUCTION": true + } + }, + "http://localhost:8050/": { + "title": "H5-localhost:8050", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "http://localhost:8050/" + }, + "define": { + "PRODUCTION": true + } + }, + "http://192.168.8.118:8050/": { + "title": "H5-192.168.8.118:8050", + "env": { + "UNI_PLATFORM": "h5", + "UNI_APP_DOMAIN": "http://192.168.8.118:8050/" + }, + "define": { + "PRODUCTION": true + } + } + } + } +} \ No newline at end of file