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

Don't hot-reload on .git metadata changes #351

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Don't hot-reload on .git metadata changes #351

merged 4 commits into from
Apr 22, 2024

Conversation

JSKitty
Copy link
Member

@JSKitty JSKitty commented Apr 18, 2024

Abstract

The webpack dev-server was constantly hot-reloading with my IDE configuration (which auto-fetches git on an interval), this PR simply ignores the .git directory, since git metadata is modified each time a fetch happened, it caused constant hot-reloads which made testing my changes painful and annoying.


Testing

To test this PR, it's suggested to attempt these user flows, or variations of these:

  • Run git fetch in a separate terminal while running npm run dev, webpack shouldn't hot-reload.

If any errors are found, the PR works unexpectedly, or you have viable suggestions to improve the UX or functionality of the PR, let me know!


@JSKitty JSKitty self-assigned this Apr 18, 2024
Copy link

netlify bot commented Apr 18, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit a1dbf35
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/662665dd8dd8350008912b23
😎 Deploy Preview https://deploy-preview-351--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

JSKitty and others added 2 commits April 22, 2024 14:26
Co-authored-by: Duddino <duddino@duddino.com>
Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

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

tACK

@Duddino Duddino merged commit 48282b5 into master Apr 22, 2024
7 checks passed
@JSKitty JSKitty deleted the hot-reloader-fix branch April 22, 2024 20:17
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.

2 participants