Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use document.write to write html files #702

Merged
merged 23 commits into from
May 20, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Put ext resources loading as last
  • Loading branch information
CompuIves committed May 20, 2018
commit e82d586ebdf179fe3e8451a948c4b155d1a135a9
8 changes: 4 additions & 4 deletions packages/app/src/sandbox/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,6 @@ async function compile({
}
}

const extDate = Date.now();
await handleExternalResources(externalResources);
debug('Loaded external resources in ' + (Date.now() - extDate) + 'ms');

if (!manager.webpackHMR && !manager.preset.htmlDisabled) {
const htmlModulePath = templateDefinition
.getHTMLEntries(configurations)
Expand Down Expand Up @@ -513,6 +509,10 @@ async function compile({
lastHTML = html;
}

const extDate = Date.now();
await handleExternalResources(externalResources);
debug('Loaded external resources in ' + (Date.now() - extDate) + 'ms');

await manager.preset.setup(manager);

const tt = Date.now();
Expand Down