Commit ac3c59b9 authored by Ian Mitchell's avatar Ian Mitchell Committed by Arunoda Susiripala

Removes Windows Webpack Polling (#2359)

parent 1b5e724d
......@@ -73,7 +73,6 @@
"glob-promise": "3.1.0",
"htmlescape": "1.1.1",
"http-status": "1.0.1",
"is-windows-bash": "1.0.3",
"json-loader": "0.5.4",
"loader-utils": "1.1.0",
"md5-file": "3.1.1",
......
......@@ -2,7 +2,6 @@ import { join, relative, sep } from 'path'
import WebpackDevMiddleware from 'webpack-dev-middleware'
import WebpackHotMiddleware from 'webpack-hot-middleware'
import onDemandEntryHandler from './on-demand-entry-handler'
import isWindowsBash from 'is-windows-bash'
import webpack from './build/webpack'
import clean from './build/clean'
import getConfig from './config'
......@@ -172,22 +171,13 @@ export default class HotReloader {
/(^|[/\\])\../, // .dotfiles
/node_modules/
]
const windowsSettings = isWindowsBash() ? {
lazy: false,
watchOptions: {
ignored,
aggregateTimeout: 300,
poll: true
}
} : {}
let webpackDevMiddlewareConfig = {
publicPath: '/_next/webpack/',
noInfo: true,
quiet: true,
clientLogLevel: 'warning',
watchOptions: { ignored },
...windowsSettings
watchOptions: { ignored }
}
if (this.config.webpackDevMiddleware) {
......
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