React Webpack setup

This repo shows you how to setup a react webpack project

Install Dependencies

npm init -y
npm i react react-dom

Dev dependencies

npm i -D webpack webpack-cli @babel/preset-env @babel/preset-react babel-loader css-loader file-loader style-loader webpack-dev-server

Initializing package.json

Just look at the package.json in this repo for reference

Setting up Webpack config

Look at the webpack.config.js and also refrence to webpack documentation

Running the app

You could use this command to run the app in development mode

npm run serve

or if you want to run the app in development mode

npm run build