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 = {
|
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$/,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user