A minimal boilerplate for creating React.js
Applications with webpack5, babel, ES6+, Eslint & Prettier.
Clone this project to any folder on your local machine.
git clone https://github.com/junaid-home/react-webpack-starter.git <YOUR_PROJECT_NAME>
Navigate into the folder name specified in the provious step.
cd <YOUR_PROJECT_NAME>
npm install
For those who use yarn
yarn install
In order to run webpack development server run
npm start
or
yarn start
This command would initialize webpack development server. The app will automatically reload if you change any of the source files.
Note: by default webpack development server runs on port 3000
, in order to change this default behaviour set PORT
Environment Variable to any number you want your development server to run on.
npm run lint
or
yarn lint
npm run format
or
yarn format
For production build, run
npm run build
or
yarn build
This would create a production optimized version of Your Application in the root of your project directory.
β ES6 Modules
β CSS Support
β File/Image imports
β Web App Manifest
β Lazy Loading
β Local Development Server
β Fast Reloading in Development
β Source Maps
β Production Optimizations
β Code Spliting
β Linting
β Prettifying
β SASS Support
MIT