SimonDegraeve / hapi-webpack-plugin

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

Example with route.handler replying file #9

Open yotamberk opened 7 years ago

yotamberk commented 7 years ago

Hi @SimonDegraeve , How can I use this plugin when my route replies a file? It seems to not recognize the injected bundled file using: assuming you've registered a view plugin such as Inert/Views -

<some route>...
handler: function(req, rep) {
  return rep.file('index.html')
}

It seems to return the html without the resolved bundled file.