Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 优化启动 dev-server 的文档 #5130

Merged

Conversation

magicFeirl
Copy link
Contributor

遇到了和 #4076 (comment) 一样的问题:文档中没有如何启动 dev-server 的内容,于是补上了;顺便修复了一个变量命名问题

@the1812 the1812 merged commit 5dad867 into the1812:preview-fixes Feb 11, 2025
1 check passed
本体已编译: (一段 hash)
```


**如果使用的是基于 Chromium 的浏览器**
1. VS Code 中运行 `启动开发服务 dev-server` 任务, 会在项目的 `dist/` 文件夹下生成一个开发用的脚本 `dist/bilibili-evolved.dev.user.js`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里针对 VSCode 其实已经写了启动方法了,使用 VSCode 时直接用任务启动会更方便,命令行启动应该注明一下,比如「在不使用 VSCode 时也可直接使用命令行启动开发服务」。
ts-node 的安装可以移动到上面的「搭建开发环境」段落中。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实也不需要另外再装 ts-node, 我会根据这个 PR 的内容调整一下, 提供 VSCode 和命令行启动的两种方式说明

the1812 added a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants