Skip to content

Commit

Permalink
fix: ssg
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Jan 12, 2024
1 parent 1593fc5 commit 90c089c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
/packages/umi/client/**/*.d.ts.map
/packages/bundler-vite/src/fixtures/alias/node_modules
**/cypress/screenshots/
**/cypress/videos/
**/cypress/videos/
17 changes: 8 additions & 9 deletions packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,20 @@ export async function getMarkup(
`<!DOCTYPE html>
<html>
<head>`,
metas.join('\n'),
favicons.join('\n'),
metas.join(''),
favicons.join(''),
title,
links.join('\n'),
styles.join('\n'),
headScripts.join('\n'),
`</head>
<body>`,
links.join(''),
styles.join(''),
headScripts.join(''),
`</head><body>`,
markup,
scripts.join('\n'),
scripts.join(''),
`</body>
</html>`,
]
.filter(Boolean)
.join('\n');
.join('');
if (opts.modifyHTML) {
markup = await opts.modifyHTML(markup, { path: opts.path });
}
Expand Down

0 comments on commit 90c089c

Please sign in to comment.