hapi-webpack-plugin icon indicating copy to clipboard operation
hapi-webpack-plugin copied to clipboard

React hot reloader example

Open tribou opened this issue 9 years ago • 5 comments

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.

tribou avatar Feb 03 '16 04:02 tribou

+1 @SimonDegraeve

sathishsoundharajan avatar Feb 28 '16 11:02 sathishsoundharajan

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 avatar Apr 01 '16 03:04 jdarling

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

jdarling avatar Apr 01 '16 03:04 jdarling

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.

jdarling avatar Apr 01 '16 04:04 jdarling

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

adam-beck avatar Apr 16 '16 16:04 adam-beck