A simple react starter kit with express and eslint support, running from webpack-dev-server as a custom server (for Node 20 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 for transpiling javascript
- support for Core-JS 3 polyfills
- webpack asset modules for svg and images etc.
- support for css modules
- optimized for development with fast startup and HMR
- efficient and small production builds
- webpack tree-shaking with es-modules
- code minification using swc-minify, csso for css
- handlerbars for custom html templates rendered at server start
First install dependencies:
npm ci
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