fix windows watch options
This commit is contained in:
parent
6c8f6a25f1
commit
f67d6b1197
|
@ -1,26 +1,30 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: [
|
entry: ['./src/index.js'],
|
||||||
'./src/index.js'
|
|
||||||
],
|
|
||||||
output: {
|
output: {
|
||||||
path: __dirname,
|
path: __dirname,
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
loaders: [{
|
loaders: [
|
||||||
exclude: /node_modules/,
|
{
|
||||||
loader: 'babel',
|
exclude: /node_modules/,
|
||||||
query: {
|
loader: 'babel',
|
||||||
presets: ['react', 'es2015', 'stage-1']
|
query: {
|
||||||
|
presets: ['react', 'es2015', 'stage-1']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
]
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx']
|
extensions: ['', '.js', '.jsx']
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
historyApiFallback: true,
|
historyApiFallback: true,
|
||||||
contentBase: './'
|
contentBase: './',
|
||||||
|
watchOptions: {
|
||||||
|
aggregateTimeout: 300,
|
||||||
|
poll: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue