From 18f7e18cbb3305cc76a29433d657f9135b16a38c Mon Sep 17 00:00:00 2001 From: pengzhouhu Date: Mon, 2 Dec 2019 11:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(mini-runner):=20=E4=BF=AE=E6=AD=A3=E5=BF=AB?= =?UTF-8?q?=E5=BA=94=E7=94=A8pages=E4=B8=ADux=E6=96=87=E4=BB=B6=E6=9C=AA?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=94=9F=E6=88=90=E9=97=AE=E9=A2=98=20(#4969?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-mini-runner/src/plugins/MiniPlugin.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts index f0bf69f69055..11acca1ba9e6 100644 --- a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts +++ b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts @@ -735,10 +735,10 @@ export default class MiniPlugin { relativePath = item.replace(this.sourceDir, '') } const extname = path.extname(item) - const templatePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].TEMPL) - const jsonPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].CONFIG) - const scriptPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].SCRIPT) - const stylePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].STYLE) + const templatePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].TEMPL).replace(/\\/g, '/') + const jsonPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].CONFIG).replace(/\\/g, '/') + const scriptPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].SCRIPT).replace(/\\/g, '/') + const stylePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].STYLE).replace(/\\/g, '/') const itemInfo = taroFileTypeMap[item] let template = itemInfo.template if (!isQuickApp) {