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