Build Script
congressclerk opened this issue · 5 comments
Hey what's the correct build script to launch this on the dev-server - was thinking, webpack-dev-server webpack/hot/dev-server ./app --hot --module-bind (which obviously isn't doing the trick)
Thanks!
cd example
webpack-dev-server --hot
http://localhost:8080/webpack-dev-server/bundle
This is awesome
It not perfect yet... There are some issues with react we need to solve.
You can follow the discussion here: webpack/webpack#341 (comment)
If you want to use this loader, I would like to hear your opinion...
I am trying to find a solution that would best tie webpack, react + an api/server framework together (i.e. express or hapi) - so that I am not creating duplicate views for both server + client, rather just pre-rendering from the server and populating onload. I haven't fully experimented with it yet, but this pattern seems like one that could be very useful. I like what Andrey did here: https://github.com/andreypopp/react-quickstart - but I'd like to swap out Browserify with Webpack and provide some additional structure to the code
For the server-side prerending you can take a look at this: https://github.com/webpack/react-webpack-server-side-example