react-webpack-5-typescript-example

Development

npm run start

or

yarn start

Producation

yarn build 

Serve

cd build 

npx serve 

Folder structure

── build
├── node_modules
├── src
│   ├── App.tsx
│   ├── app.module.css
│   ├── image.jpg
│   ├── index.html
│   ├── index.tsx
│   ├── styles.css
│   └── webpack.svg
├── webpack
│   ├── webpack.common.js
│   ├── webpack.config.js
│   ├── webpack.dev.js
│   └── webpack.prod.js
├── index.d.ts
├── package.json
├── tsconfig.json
├── yarn-error.log
└── yarn.lock

Supports

  • CSS module
  • Separate environments production and development