You've already forked template-MP-ts
编译配置更新
This commit is contained in:
@@ -25,6 +25,7 @@ function replaceManifestAppid() {
|
||||
dotenv.config({ path: resolve(__dirname, '.env') })
|
||||
const appid = process.env.VITE_APPID
|
||||
const uni_appId = process.env.VITE_UNI_APPID
|
||||
const libVersion = process.env.VITE_LIBVERSION || '3.0.0'
|
||||
|
||||
if (appid && uni_appId) {
|
||||
// 读取 manifest.json 文件
|
||||
@@ -37,6 +38,7 @@ function replaceManifestAppid() {
|
||||
|
||||
if (manifest['mp-weixin']) {
|
||||
manifest['mp-weixin'].appid = appid
|
||||
manifest['mp-weixin'].libVersion = libVersion
|
||||
}
|
||||
|
||||
// 写回文件
|
||||
|
||||
Reference in New Issue
Block a user