Choix du host automatique par le navigateur pour le hot reload

Pour le développement à distance sur un serveur
https://github.com/webpack-contrib/webpack-hot-client/blob/master/docs/REMOTE.md
pull/294/head
Mael 2018-08-02 11:55:15 +02:00
parent 6765140e59
commit 034476df75
1 changed files with 3 additions and 0 deletions

View File

@ -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(