how to write webpack config in react code example Example: add webpack to react project tutorial npm i webpack webpack-cli webpack-dev-server --save-dev