react-webpack5-starter
Webpack config for reactjs environment
Commands
Run development server
# export PORT=8080 --> default in 3000
npm start
Build production bundles
npm run build
Build development bundles
npm run build:dev
dist
folder
Clean npm run clean
Run bundle stats
npm run build:stats
Watch
npm run watch
Feature
- webpack & webpack-dev-server
- HMR and Fast Reload for React
- SCSS / CSS, PostCSS loader
- Asset loader (png, svg, jpg, jpeg, gif)