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 installFor those who use yarn
yarn installIn order to run webpack development server run
npm startor
yarn startThis 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 lintor
yarn lintnpm run formator
yarn formatFor production build, run
npm run buildor
yarn buildThis 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