Signed-off-by: yangbo <1442420648@qq.com>
Change-Id: I5fd2a5c00047c0b1159ff6152d3c08e1c19735f0
This commit is contained in:
yangbo
2022-03-13 16:44:42 +08:00
parent 43ba3c2e67
commit b90a61fc76
+3 -3
View File
@@ -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');
@@ -166,9 +166,9 @@ function addPageEntryObj() {
if (isHml && isVisual) {
console.error('ERROR: ' + sourcePath + ' cannot both have hml && visual');
} else if (isHml) {
entryObj['./' + element] = path.resolve(projectPath, './' + sourcePath + '.hml?entry');
entryObj['./' + sourcePath] = path.resolve(projectPath, './' + sourcePath + '.hml?entry');
} else if (isVisual) {
entryObj['./' + element] = path.resolve(aceSuperVisualPath, './' + sourcePath +
entryObj['./' + sourcePath] = path.resolve(aceSuperVisualPath, './' + sourcePath +
'.visual?entry');
}
});