Webpack starter project
This is a simple starter Web project using Webpack, Babel and ReactJS. Optionally it also shows how to use Webpack APIs in Gulp.
To install app dependencies -
- npm install
To bundle the application in one file
- webpack
This created buindle.js and copies index.html to bundle folder
OR using Gulp - gulp build
To run webpack-dev-server
- webpack-dev-server
OR using Gulp - gulp
- wait till you see console message - 'webpack: bundle is not VALID' and then browse to http://localhost:8080
Note that when using webpack-dev-server files are served from memory and no files are genereated in the build folder.
See [Setting up Webpack + Babel + ReactJS] (http://ramkulkarni.com/blog/setting-up-webpack-babel-reactjs/)