A basic custom config repo to quickly clone and start building on top of to create any project with React, Webpack and Babel. It already has webpack dev server for development and webpack for production.
- React for frontend
- Webpack for JavaScript source code bundling.
- Babel for transpiling new JavaScript features & React into vanilla JS to work in older web browsers.
- Clone the project source code.
git clone https://github.com/AVu120/base-react-webpack-babel-template.git
- Navigate into the repo folder.
cd base-react-webpack-babel-template
- Download all required dependancies.
npm i
- Start the app in development mode on a local dev server (webpack dev server).
npm start
- Start the app in production mode on a mock local prod server.
npx http-server dist
- Enter the url displayed in the CLI. For example:
- When deployed in development mode 'Project is running at http://localhost:8080/'.
- When deployed in production mode locally using http-server: 'Starting up http-server, serving dist Available on: http://10.0.0.14:8080 http://127.0.0.1:8080 http://192.168.35.161:8080 Hit CTRL-C to stop the server'
I used information from the following links to create this repo: