React Webpack Starter
A boiler plate for creating react applications bundled by webpack (using ES6, Babel, SASS and webpack development server)
- ES6 => ES5 code transpiling (with Babel)
- Styling with SASS
- File bundling with webpack
- local development with the webpack development server
npm i -g webpack webpack-dev-server
The dependencies of this project are managed with yarn (see installation guide here). However you can simply use the node package manager, npm for your dependency management.
- Clone this project to a folder in your local machine
bash git clone https://github.com/temilaj/react-webpack-starter.git <FOLDER_NAME_HERE>
For those who love yarn
For those who love NPM
Runnning the bundle
yarn run build
npm run build
Running the app in Development
npm start to intialize and run the webpack development server. Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files.
Running the app in Production
To run the app in production build of the app, use either of the following.
yarn run production
npm run production