This commit is contained in:
parent
765ec68ef3
commit
df1219b47a
1 changed files with 8 additions and 0 deletions
|
@ -255,6 +255,10 @@ function bundleExternalLibs(project, zip, callback) {
|
||||||
|
|
||||||
if (!isUrl(src)) {
|
if (!isUrl(src)) {
|
||||||
numScriptsResolved += 1;
|
numScriptsResolved += 1;
|
||||||
|
if (numScriptsResolved === numScriptTags) {
|
||||||
|
indexHtml.content = serializeDocument(document);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,6 +285,10 @@ function bundleExternalLibs(project, zip, callback) {
|
||||||
for (let i = 0; i < numScriptTags; i += 1) {
|
for (let i = 0; i < numScriptTags; i += 1) {
|
||||||
resolveScriptTagSrc(scriptTags[i], indexHtmlDoc);
|
resolveScriptTagSrc(scriptTags[i], indexHtmlDoc);
|
||||||
}
|
}
|
||||||
|
if (numScriptTags === 0) {
|
||||||
|
indexHtml.content = serializeDocument(document);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue