- yarn create react-app react-scaffold --template typescript
- css module to use scoped css, create css file ending with .module.scss
- using sass yarn add node-sass
- global scss variable and mixins yarn add sass-resources-loader
- css normalize https://github.com/csstools using @import-normalize in index.scss override it by modifying reset.scss
- post css plugins yarn add postcss-aspect-ratio-mini postcss-px-to-viewport postcss-write-svg postcss-cssnext postcss-viewport-units cssnano
- use custom environment variables starting with REACT_APP_ in .env.xxxxx file
- public url path: PUBLIC_URL
- yarn start: .env.development yarn build:test: .env.predeploy yarn build: .env.production
- yarn add @types/react-router-dom
- @: src/*
- yarn add react-app-polyfill