install webpack in react js code example
Example 1: webpack install
npm install --save-dev webpack-cli
Example 2: npm install webpack
npm install --save-dev webpack
Example 3: add webpack to react project
{ "presets": [ "@babel/preset-env", "@babel/preset-react" ]}
Example 4: add webpack to react project tutorial
npm i webpack webpack-cli webpack-dev-server --save-dev