From c00a52f3f05b03f0bac6106bd5b128ccdf6f75fe Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 15 Jul 2020 17:13:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=AFnvue=E9=A1=B9=E7=9B=AE=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=8A=A0=E8=BD=BD=E6=9C=AC=E5=9C=B0=20hybrid/html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js b/packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js index 378ac897bf..adc81f4048 100644 --- a/packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js +++ b/packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js @@ -205,7 +205,14 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) { const array = [{ from: path.resolve(process.env.UNI_INPUT_DIR, 'static'), to: 'static' - }] + }] + const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR, 'hybrid/html') + if (fs.existsSync(hybridHtmlPath)) { + array.push({ + from: hybridHtmlPath, + to: 'hybrid/html' + }) + } if (process.env.UNI_USING_NVUE_COMPILER) { array.push({ from: path.resolve(getTemplatePath(), 'common'), -- GitLab