mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
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
This commit is contained in:
parent
a7b6ffa914
commit
2c343baeba
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue