A simple react starter kit with exposed config and hooks support, running from webpack-dev-server (for Node 16 LTS and above).
Supports eslint with recommended lint rules, prettier and other best practices supported OOB
Currently supported config:
- configuration for eslint, prettier and webpack
- browserlist support with autoprefixer using postcss
- @swc/core and swc-loader for transpiling javascript
- support for Core-JS 3 polyfills
- webpack asset modules for svg, font and images etc.
- support for css modules
- optimized for development with fast startup and HMR
- efficient and small production builds
- webpack tree-shaking with lodash and moment lib optimizations
- code minification using swc-minify, csso for css and html minify
First install dependencies:
npm install
To run in hot reloading mode using express configured with dev server:
npm start
To create a production build (dist folder) with production express server:
npm run build
Run npm start
in dist folder to start running the app