UPDATE (Jan 15, 2019):
A better article for Webpack v4 is published.
The article explains how to do a minimal scaffolding of React application using Webpack.
- Setup Git.
- Setup npm.
- Install packages.
- Setup babel.
- Setup Webpack.
- Define entry.
- Include bundle.
- Run application.
Setup Git
Setup a git repo as follows.
git init git remote add origin <remoteurl
Setting up a git repo is optional if you are only doing a demo.…