Skip to content

Commit

Permalink
Apply fix to part1/example6/webpack.config.dev.js to enable HMR
Browse files Browse the repository at this point in the history
This issue is referenced here: webpack/webpack-dev-server#326

Signed-off-by: Ian Hilt <[email protected]>
  • Loading branch information
ihilt committed Feb 15, 2016
1 parent ef992e5 commit 04418fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions part1/example6/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
devtool: 'cheap-eval-source-map',
entry: [
'webpack-dev-server/client?http://localhost:8080',
'webpack-dev-server/client?http://0.0.0.0:8080/',
'webpack/hot/dev-server',
'./src/index'
],
Expand All @@ -27,6 +27,7 @@ module.exports = {
},
devServer: {
contentBase: './dist',
hot: true
hot: true,
host: '0.0.0.0'
}
}

0 comments on commit 04418fc

Please sign in to comment.