npm install --save-dev webpack webpack-dev-server babel-loader babel-core
Note: insert react-hot-loader
and react
etc, if you are working on React projects
example: npm install --save react react-dom history react-router
touch webpack.config.js
and add this boilerplate: