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

How to add hmr ignore files or folders when developing #19150

Closed
4 tasks done
liuyax0818 opened this issue Jan 7, 2025 · 1 comment
Closed
4 tasks done

How to add hmr ignore files or folders when developing #19150

liuyax0818 opened this issue Jan 7, 2025 · 1 comment

Comments

@liuyax0818
Copy link

liuyax0818 commented Jan 7, 2025

Description

How to add hmr ignore files or folders when developing

开发中如何添加 Vite 热更新忽略文件/文件夹

Suggested solution

Support some ignore files/folders of hmr, such as distREADME.md.gitignore etc.

支持一些热更新忽略文件/文件夹,如 distREADME.md.gitignore 等等

Alternative

When modifying files/folders such as distREADME.md.gitignore , etc., it will not trigger hmr

当修改 distREADME.md.gitignore 等文件/文件夹时,不会触发热更新

Additional context

No response

Validations

@sapphi-red
Copy link
Member

sapphi-red commented Jan 7, 2025

If the file is not imported, HMR won't happen. I assume you are not importing dist, README.md, .gitignore in your application code. Would you expand on when the HMR happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants