1
0
Fork 0
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:
Max Fierro 2018-10-28 19:01:45 -03:00 committed by Tim Neutkens
parent a7b6ffa914
commit 2c343baeba

View file

@ -309,11 +309,11 @@ export default class HotReloader {
this.prevChunkHashes = chunkHashes this.prevChunkHashes = chunkHashes
}) })
// We dont watch .git .next/ and node_modules for changes // We dont watch .git/ .next/ and node_modules for changes
const ignored = [ const ignored = [
/\.git/, /[\\/]\.git[\\/]/,
/\.next\//, /[\\/]\.next[\\/]/,
/node_modules/ /[\\/]node_modules[\\/]/
] ]
let webpackDevMiddlewareConfig = { let webpackDevMiddlewareConfig = {