Skip to content

Commit

Permalink
Removes Windows Webpack Polling (vercel#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMitchell authored and arunoda committed Jun 30, 2017
1 parent 1b5e724 commit ac3c59b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 1 addition & 11 deletions server/hot-reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ac3c59b

Please sign in to comment.