An open API service indexing awesome lists of open source software.

https://github.com/paradocx96/webpack-react

Sample project for Webpack bundle process with ReactJs
https://github.com/paradocx96/webpack-react

Last synced: 12 months ago
JSON representation

Sample project for Webpack bundle process with ReactJs

Awesome Lists containing this project

README

          

# Webpack + React + Babel

## 1. Project setup and make project structure

```bash
npm init -y
```
```
├── public
│ └── index.html
├── src
│ └── index.js
├── .babelrc
├── package.json
└── webpack.config.js
```

## 2. Install webpack dependencies

```bash
npm install webpack webpack-cli --save-dev
```
```bash
npm install html-webpack-plugin --save-dev
```
```bash
npm install webpack-dev-server --save-dev
```

## 3. Install babel dependencies

```bash
npm install @babel/core @babel/preset-env babel-loader --save-dev
```

## 4. Install react dependencies

```bash
npm install react react-dom --save-dev
```
```bash
npm install @babel/preset-react --save-dev
```