Commit 2c343bae authored by Max Fierro's avatar Max Fierro Committed by Tim Neutkens

Fix issue with HMR not working (#5544)

Change the ignore patterns to ignore `.git/` folder.
Add Windows pattern matching for `.next/` and `.git/` folders.

Fixes #5429
parent a7b6ffa9
......@@ -309,11 +309,11 @@ export default class HotReloader {
this.prevChunkHashes = chunkHashes
})
// We don’t watch .git .next/ and node_modules for changes
// We don’t watch .git/ .next/ and node_modules for changes
const ignored = [
/\.git/,
/\.next\//,
/node_modules/
/[\\/]\.git[\\/]/,
/[\\/]\.next[\\/]/,
/[\\/]node_modules[\\/]/
]
let webpackDevMiddlewareConfig = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment