初始项目 npm run dev 打开文档非常慢,是什么原因? / Why is npm run dev so slow to open docs in a new project? #3499
buddacoming
started this conversation in
General
Replies: 3 comments 3 replies
|
看着似乎是一个
This looks like a
|
0 replies
|
本地:Ubuntu 24,npm create rspress@latest,选择多语言自定义theme。在GitHub codespace上也会重现,有随机性,不清楚重现条件。新建项目开始没有这个问题了,添加语言时又出现了。没有错误打印,没有提示信息。页面如果打开过,后面就流畅了,不知道具体什么原因。 |
0 replies
|
lazyCompilation 的相关信息如下,
可以确认是否是 lazyCompilation 的问题,你可以通过将 defineConfig({
builderConfig: {
dev: {
lazyCompilation: false
}
}
}) |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Linux 下脚手架新建项目,
npm run dev启动,第一次访问时非常慢,几分钟打不开。但是编译似乎都已经完成,不清楚慢的原因。Local: http://localhost:3000/
➜ Network: http://172.17.0.2:3000/
➜ press h + enter to show shortcuts
start build started...
ready built in 0.28s
start building virtual modules
ready built in 0.08s
start building guide/start/introduction.md and 1 more
ready built in 0.18s
start building en/api/index.mdx
ready built in 0.06s
start building en/api/index.mdx and 1 more
ready built in 0.22s
start building en/api/index.mdx and 2 more
ready built in 0.09s
start building en/api/index.mdx and 3 more
ready built in 0.06s
start building en/api/index.mdx and 4 more
ready built in 0.06s
start building en/api/index.mdx and 5 more
ready built in 0.09s
start building guide/use-mdx/components.mdx and 4 more
ready built in 0.05s
start building guide/start/getting-started.md and 3 more
ready built in 0.06s
start building use-mdx/code-blocks/index.mdx and 2 more
ready built in 0.06s
start building use-mdx/code-blocks/title.md and 1 more
ready built in 0.05s
start building use-mdx/code-blocks/meta.md
ready built in 0.05s
In a new project created with the scaffold on Linux, I start it with
npm run dev. The first page load is very slow and can take several minutes, even though compilation seems complete. I’m not sure what is causing the delay.Local: http://localhost:3000/
➜ Network: http://172.17.0.2:3000/
➜ press h + enter to show shortcuts
start build started...
ready built in 0.28s
start building virtual modules
ready built in 0.08s
start building guide/start/introduction.md and 1 more
ready built in 0.18s
start building en/api/index.mdx
ready built in 0.06s
start building en/api/index.mdx and 1 more
ready built in 0.22s
start building en/api/index.mdx and 2 more
ready built in 0.09s
start building en/api/index.mdx and 3 more
ready built in 0.06s
start building en/api/index.mdx and 4 more
ready built in 0.06s
start building en/api/index.mdx and 5 more
ready built in 0.09s
start building guide/use-mdx/components.mdx and 4 more
ready built in 0.05s
start building guide/start/getting-started.md and 3 more
ready built in 0.06s
start building use-mdx/code-blocks/index.mdx and 2 more
ready built in 0.06s
start building use-mdx/code-blocks/title.md and 1 more
ready built in 0.05s
start building use-mdx/code-blocks/meta.md
ready built in 0.05s
All reactions