1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Removes Windows Webpack Polling (#2359)

This commit is contained in:
Ian Mitchell 2017-06-29 23:50:18 -07:00 committed by Arunoda Susiripala
parent 1b5e724d31
commit ac3c59b9f4
2 changed files with 1 additions and 12 deletions

View file

@ -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",

View file

@ -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) {