fix windows watch options

This commit is contained in:
stephengrider 2018-04-30 08:57:30 -06:00
parent 6c8f6a25f1
commit f67d6b1197
1 changed files with 14 additions and 10 deletions

View File

@ -1,26 +1,30 @@
module.exports = {
entry: [
'./src/index.js'
],
entry: ['./src/index.js'],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
loaders: [{
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['react', 'es2015', 'stage-1']
loaders: [
{
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['react', 'es2015', 'stage-1']
}
}
}]
]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
devServer: {
historyApiFallback: true,
contentBase: './'
contentBase: './',
watchOptions: {
aggregateTimeout: 300,
poll: 1000
}
}
};