From 034476df75267d01336756bb14d253dda95a767d Mon Sep 17 00:00:00 2001 From: Mael Date: Thu, 2 Aug 2018 11:55:15 +0200 Subject: [PATCH] Choix du host automatique par le navigateur pour le hot reload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour le développement à distance sur un serveur https://github.com/webpack-contrib/webpack-hot-client/blob/master/docs/REMOTE.md --- source/webpack.dev.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/webpack.dev.js b/source/webpack.dev.js index 44131c07c..13b70a055 100644 --- a/source/webpack.dev.js +++ b/source/webpack.dev.js @@ -11,6 +11,9 @@ module.exports = { entry: map(concat(['react-hot-loader/patch']), common.entry), serve: { host: '0.0.0.0', + hotClient: { + host: { client: '*', server: '0.0.0.0' } + }, add: (app, middleware, options) => { app.use( convert(