Skip to content

Node.js API #83

Answered by meteorlxy
DanielPe05 asked this question in Q&A
Mar 26, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

I think you must have read the code in @vuepress/cli, and you are likely missing the following snippet:

https://github.com/vuepress/vuepress-next/blob/f8cd4a37d251e64ded2f1d7e8ca51afd81fd72d9/packages/%40vuepress/cli/src/commands/build/build.ts#L20-L22

But that could be a potential issue of @vuepress/bundler-webpack.

--- updated

This should be fixed in accc484, but you still need to set NODE_ENV=production to enable production mode.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@DanielPe05
Comment options

@meteorlxy
Comment options

@DanielPe05
Comment options

@DanielPe05
Comment options

Answer selected by meteorlxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants