Vuepress building is too slow ?!
See original GitHub issue- I confirm that this is an issue rather than a question.
Bug report
My project is large, it maybe contain 6000 markdown files. Once, I meet the dev
performance problem, and I solve it by this command node --max_old_space_size=8192 ./node_modules/vuepress/cli.js dev src
.
But, when I run building production, the process is too slow. I also modify the building command with node --max_old_space_size=8192 ./node_modules/vuepress/cli.js build src
. Unfortunately, it doesn’t work.
Version
“vuepress”: “^1.0.0-alpha.47”,
Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
- Your OS: MAC
- Node.js version: 8.11
- Browser version:
- Is this a global or local install? local
- Which package manager did you use for the install?
- Does this issue occur when all plugins are disabled?
Issue Analytics
- State:
- Created 4 years ago
- Comments:38 (7 by maintainers)
Top Results From Across the Web
Config Reference - VuePress
Specify the output directory for vuepress build . If a relative path is specified, it will be resolved based on process.cwd() .
Read more >Slow image loading - Netlify Support Forums
EDIT: I've checked my local build and it is also showing the issue of multiple images, so I will jump on the VuePress...
Read more >VuePress builds broken html with invalid adresses to assets
The paths to the CSS and JS files in index.html are absolute (starts with / ), so viewing index.html using the file protocol...
Read more >Migrating a Drupal 4.6 Site To VuePress - Tandem
VuePress is a newer product that is used to build static based sites. Since the 1.x version of VuePress, a lot of the...
Read more >Choosing a Static Site Generator - Muhammad Rehan Saeed
I was using WordPress in the past which was achingly slow and a major ... The other thing that I really loved was...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ulivz I wouldn’t wipe this issue out so quickly. Sure @JimmyVV should provide more data but I’m migrating a documentation (5000+ files) from Metalsmith to VuePress and the main issue we have now is that we can’t deploy on Netlify because the build time is longer than the maximum build timeout. Metalsmith did build the whole doc within Netlify’s timeouts.
Ok, Vuepress’ build process is surely more complex than Metalsmith and Vuepress is indeed a better tool, but yet… The build time is incredibly bigger in VP and this is strange.
So this is meant to add some data to the “comparison with other static website building tools” you asked above, @ulivz .
@JimmyVV please, would you post your investigations about memleaks introduced by the default theme?
Another point that cannot be ignored is that when @JimmyVV downgrades, the perfs are better. I definitely think we should look into this.
Recently, I used node workers to speed up the compiling process. the total time decrease from 10min to 2min. Maybe this is another way to improve the compiling procedure, by worker thread.