Skip to content

Commit

Permalink
Merge branch 'main' into feat/head-build-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 12, 2022
2 parents 3dd144d + 8e4ff4d commit 86d78ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0-alpha.13",
"description": "Vite & Vue powered static site generator",
"type": "module",
"packageManager": "pnpm@7.11.0",
"packageManager": "pnpm@7.9.2",
"main": "dist/node/index.js",
"types": "types/index.d.ts",
"exports": {
Expand Down
24 changes: 13 additions & 11 deletions src/node/build/build.ts
Expand Up @@ -65,18 +65,20 @@ export async function build(

const pages = ['404.md', ...siteConfig.pages]

for (const page of pages) {
await renderPage(
render,
siteConfig,
page,
clientResult,
appChunk,
cssChunk,
pageToHashMap,
hashMapString
await Promise.all(
pages.map((page) =>
renderPage(
render,
siteConfig,
page,
clientResult,
appChunk,
cssChunk,
pageToHashMap,
hashMapString
)
)
}
)
} catch (e) {
spinner.stopAndPersist({
symbol: failMark
Expand Down

0 comments on commit 86d78ae

Please sign in to comment.