From 535dc96a6e5254ece3a00132ce476c2084cef678 Mon Sep 17 00:00:00 2001 From: yangbo <1442420648@qq.com> Date: Sun, 13 Mar 2022 16:15:46 +0800 Subject: [PATCH] fixed 4a94049 from https://gitee.com/txdyyangbo/developtools_ace-js2bundle/pulls/176 yangbo198@huawei.com Signed-off-by: yangbo <1442420648@qq.com> Change-Id: Id75972e5b2b0652415dfada4701e78a1786a288a --- ace-loader/src/resource-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ace-loader/src/resource-plugin.js b/ace-loader/src/resource-plugin.js index da424ee..be5c293 100644 --- a/ace-loader/src/resource-plugin.js +++ b/ace-loader/src/resource-plugin.js @@ -156,7 +156,7 @@ function addPageEntryObj() { throw Error('ERROR: missing pages').message; } pages.forEach((element) => { - const sourcePath = element; + const sourcePath = element.replace(/^\.\/js\//, ''); const hmlPath = path.join(input, sourcePath + '.hml'); const aceSuperVisualPath = process.env.aceSuperVisualPath || ''; const visualPath = path.join(aceSuperVisualPath, sourcePath + '.visual'); -- Gitee