webpack + react.js + hot reloading
Fork of a project by rauschma. This project shows how to use webpack for client-side React development in ECMAScript 6.
Includes:
- hot reloading (courtesy of gaearon's babel-plugin-react-transform and react-transform-hmr)
- CSS Modules
installation
- Install node
- run
npm install
usage
gulp
to start gulp in watch mode - webpack will recompile when you change a JS or LESS file.- open
localhost:7000
in a browser. - Change or add files in
src/js
folder.main.js
is the entry point.