From e7dd56ce67bb691249eea90eb35a872103677c0a Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 15 Aug 2022 20:38:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(ext.json):=20=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=20=E7=99=BE=E5=BA=A6=20=E5=BF=AB=E6=89=8B=20=E5=AD=97=E8=8A=82?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8B=B7=E8=B4=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-mp-alipay/src/compiler/options.ts | 2 +- packages/uni-mp-baidu/src/compiler/options.ts | 8 ++++++++ packages/uni-mp-kuaishou/src/compiler/options.ts | 8 ++++++++ packages/uni-mp-toutiao/src/compiler/options.ts | 8 ++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/uni-mp-alipay/src/compiler/options.ts b/packages/uni-mp-alipay/src/compiler/options.ts index a57560ffe..a74da1f54 100644 --- a/packages/uni-mp-alipay/src/compiler/options.ts +++ b/packages/uni-mp-alipay/src/compiler/options.ts @@ -70,7 +70,7 @@ export const options: UniMiniProgramPluginOptions = { targets: [ ...(process.env.UNI_MP_PLUGIN ? [copyMiniProgramPluginJson] : []), { - src: ['customize-tab-bar'], + src: ['customize-tab-bar','ext.json'], get dest() { return process.env.UNI_OUTPUT_DIR }, diff --git a/packages/uni-mp-baidu/src/compiler/options.ts b/packages/uni-mp-baidu/src/compiler/options.ts index dcc35c3b2..b94bbb5bb 100644 --- a/packages/uni-mp-baidu/src/compiler/options.ts +++ b/packages/uni-mp-baidu/src/compiler/options.ts @@ -60,6 +60,14 @@ export const options: UniMiniProgramPluginOptions = { }, copyOptions: { assets: [COMPONENTS_DIR], + targets: [ + { + src: ['ext.json'], + get dest() { + return process.env.UNI_OUTPUT_DIR + }, + }, + ], }, }, global: 'swan', diff --git a/packages/uni-mp-kuaishou/src/compiler/options.ts b/packages/uni-mp-kuaishou/src/compiler/options.ts index 713e3aec2..a17ac57ef 100644 --- a/packages/uni-mp-kuaishou/src/compiler/options.ts +++ b/packages/uni-mp-kuaishou/src/compiler/options.ts @@ -51,6 +51,14 @@ export const options: UniMiniProgramPluginOptions = { }, copyOptions: { assets: [COMPONENTS_DIR], + targets: [ + { + src: ['ext.json'], + get dest() { + return process.env.UNI_OUTPUT_DIR + }, + }, + ], }, }, global: 'ks', diff --git a/packages/uni-mp-toutiao/src/compiler/options.ts b/packages/uni-mp-toutiao/src/compiler/options.ts index 272bb4c9f..3fe6b894d 100644 --- a/packages/uni-mp-toutiao/src/compiler/options.ts +++ b/packages/uni-mp-toutiao/src/compiler/options.ts @@ -51,6 +51,14 @@ export const options: UniMiniProgramPluginOptions = { }, copyOptions: { assets: [COMPONENTS_DIR], + targets: [ + { + src: ['ext.json'], + get dest() { + return process.env.UNI_OUTPUT_DIR + }, + }, + ], }, }, global: 'tt', -- GitLab