#React template
##Installation
git clone https://github.com/petrhanak/webpack-server-build-demo.git
npm install
npm run start
- open
http://localhost:4000in your browser - edit something in
src/client/components - ...
- profit
- hot reload - both client and server are updated within few miliseconds, without restart
- serving assets - with
dev-middlewareon development andserve-staticon production - less hacky - no need for
babel-registerorwebpack-isomorphic-tools - full webpack power - files are transpilled with webpack which means you can use css modules and all fancy stuff like
import template from './layout.pug' - production ready - after some testing it should be reliable solution
inspiration taken from article Don't use nodemon by Kevin Simple