SimonDegraeve / hapi-webpack-plugin

Webpack middleware for Hapi. Supports HMR.
57 stars 25 forks source link

Hot options not working #3

Closed Dindaleon closed 8 years ago

Dindaleon commented 8 years ago

Hello Simon,

I am trying to activate the reload function for webpack-hot-middleware like this:

var hot = {
  // webpack-hot-middleware options 
  // See https://github.com/glenjamin/webpack-hot-middleware 
  reload:true
}

The asset's options do work though. And if I set reload to true in the webpack's entry settings works as well.

SimonDegraeve commented 8 years ago

Hi,

I am not sure to understand what are you expecting with reload: true option. According to webpack-hot-middleware code the middleware only accept log, path or heartbeat.

The reload option is for the client not the middleware and can be passed to the client by adding querystring parameters to the path in the webpack config. See the documentation.