SimonDegraeve / hapi-webpack-plugin

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

React hot reloader example #7

Open tribou opened 8 years ago

tribou commented 8 years ago

Could you please provide either a react-hot-loader or react-transform example? I haven't been able to get those working with this plugin.

sathishsoundharajan commented 8 years ago

+1 @SimonDegraeve

jdarling commented 8 years ago

Like the other two, I would love to see a simple example. Being new to WebPack and HMR its very difficult to wrap my head around how to setup my webpack.config.js file to work. If you give me some hints (besides read the docs, that isn't getting me far) and I get it working, I'll even submit a PR with a simple sample.

jdarling commented 8 years ago

Nevermind, figured it out, I'll be posting an example project soon and will post a link.

jdarling commented 8 years ago

And, here is the example code: https://github.com/jdarling/hapi-react-redux-hmr

Gotta admit, its probably a bit more than a simple example needs. Its basically my project stripped down to a basic boiler plate.

adam-beck commented 8 years ago

I've also created a very basic example of using this Hapi plugin with the react-transform babel plugin. It is not a boilerplate but was created just to demonstrate how to get this up and running.

https://github.com/adam-beck/hapi-plz