Make HMR work when app is ran on web host
This commit is contained in:
parent
edf3843ee5
commit
952e249fe4
|
@ -4,7 +4,7 @@ var webpack = require('webpack');
|
|||
module.exports = {
|
||||
devtool: 'eval',
|
||||
entry: [
|
||||
'webpack-dev-server/client?http://localhost:3000',
|
||||
'webpack-dev-server/client?https://notica.us',
|
||||
'webpack/hot/only-dev-server',
|
||||
'./src/index'
|
||||
],
|
||||
|
@ -17,6 +17,9 @@ module.exports = {
|
|||
new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.NoErrorsPlugin()
|
||||
],
|
||||
watchOptions: {
|
||||
poll: true
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
|
|
Loading…
Reference in New Issue
Block a user