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

Feature: 更细粒度的 watch #990

Closed
Tracked by #1000
Seidko opened this issue Feb 27, 2023 · 0 comments
Closed
Tracked by #1000

Feature: 更细粒度的 watch #990

Seidko opened this issue Feb 27, 2023 · 0 comments
Labels
feature 新特性

Comments

@Seidko
Copy link
Member

Seidko commented Feb 27, 2023

Describe the problem related to the feature request

现在的 watch 只支持 watch 一个目录,而我在生产环境的时候希望只 watch koishi.yml 的更新。所以希望可以有对单个文件的指定 watch。

Describe the solution you'd like

  1. 允许 cli 传递一个文件或者目录列表,或者把这个列表放在 .env
  2. 新增一个 hmr 插件,专门做热重载的工作,把 watch 的文件或者目录列表放在配置文件中

Describe alternatives you've considered

No response

Additional context

No response

@Seidko Seidko added the feature 新特性 label Feb 27, 2023
@shigma shigma mentioned this issue Mar 6, 2023
24 tasks
@shigma shigma closed this as completed in e68c610 Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 新特性
Projects
None yet
Development

No branches or pull requests

1 participant