mriiad / react-webpack-starter

A simple react app using webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

creating a simple react app using Webpack

Objective: Get the same result as the command 'npx create-react-app' using webpack configuration

First step

Create an empty project.
launch the command: 'npm init -y'
Install React and ReactDOM: 'npm i react react-dom'
Install Babel: 'npm i -D @babel/core @babel/preset-env @babel/preset-react babel-loader'
Install Webpack: 'npm i -D webpack webpack-cli'
Install Webpack loaders: 'npm i -D babel-loader file-loader css-loader style-loader'
Install Webpack dev server: 'npm i webpack-dev-server'

About

A simple react app using webpack


Languages

Language:JavaScript 62.0%Language:CSS 24.2%Language:HTML 13.8%