/Docsumo

Docsumo Login Page In React + Webpack

Primary LanguageJavaScript

Minimal React and Webpack 4 boilerplate with babel

dependencies dependencies

Minimal webpack and react boilerplate using latest version of react and babel as well as jest and enzyme for more details about technologies used. click with real time server changes ;)

check out Medium article for more details

Real time change

Table of contents

Project structure

Installation

Configuration

Technologies used

Project structure

build/
src/
|- index.jsx _______________________________ # Application entry
|- App.jsx _________________________________ # Application init
|  |- Components/
|    |- hello-world/
|       |- index.jsx _______________________ # Sample component

webpack
|- paths.js ________________________________ # webpack paths needed
|- webpack.common.js _______________________ # common webpack config
|- webpack.dev.js __________________________ # development config
|- webpack.prod.js _________________________ # production config

Installation

1- Clone the boilerplate repo

git clone git@github.com:HashemKhalifa/webpack-react-boilerplate.git

2- yarn or npm install to install npm packages

3- start dev server using yarn start or npm start.

3- build and bundling your resources for production yarn build or npm run build.

4- run the production build from dist folder yarn prod or np run prod.

5- beauify code using yarn format or npm run format

Configuration

  • /webpack.config.js main webpack config that merge common and webpack environment based config.
  • Prettier config /.prettierc.
  • Husky and Browsers list config object in /.package.json.

Technologies used