File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/@vuepress/core/lib/node/build Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,13 @@ module.exports = class Build extends EventEmitter {
89
89
// render pages
90
90
logger . wait ( 'Rendering static HTML...' )
91
91
92
- const pagePaths = [ ]
92
+ const pagePathsPromises = [ ]
93
93
for ( const page of this . context . pages ) {
94
- pagePaths . push ( await this . renderPage ( page ) )
94
+ pagePathsPromises . push ( this . renderPage ( page ) )
95
95
}
96
96
97
+ const pagePaths = await Promise . all ( pagePathsPromises )
98
+
97
99
readline . clearLine ( process . stdout , 0 )
98
100
readline . cursorTo ( process . stdout , 0 )
99
101
@@ -134,9 +136,6 @@ module.exports = class Build extends EventEmitter {
134
136
135
137
async renderPage ( page ) {
136
138
const pagePath = decodeURIComponent ( page . path )
137
- readline . clearLine ( process . stdout , 0 )
138
- readline . cursorTo ( process . stdout , 0 )
139
- process . stdout . write ( `Rendering page: ${ pagePath } ` )
140
139
141
140
// #565 Avoid duplicate description meta at SSR.
142
141
const meta = ( page . frontmatter && page . frontmatter . meta || [ ] ) . filter ( item => item . name !== 'description' )
You can’t perform that action at this time.
0 commit comments