Make HMR work when app is ran on web host

This commit is contained in:
Tanner Collin 2016-12-27 04:43:47 +00:00
parent edf3843ee5
commit 952e249fe4

View File

@ -4,7 +4,7 @@ var webpack = require('webpack');
module.exports = { module.exports = {
devtool: 'eval', devtool: 'eval',
entry: [ entry: [
'webpack-dev-server/client?http://localhost:3000', 'webpack-dev-server/client?https://notica.us',
'webpack/hot/only-dev-server', 'webpack/hot/only-dev-server',
'./src/index' './src/index'
], ],
@ -17,6 +17,9 @@ module.exports = {
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin() new webpack.NoErrorsPlugin()
], ],
watchOptions: {
poll: true
},
module: { module: {
loaders: [{ loaders: [{
test: /\.js$/, test: /\.js$/,