Saber2pr's Blog

CraBuildToolReactScripts

  1. TSCCOMPILEON_ERROR You can skip typescript type checking to force packaging
{
  "scripts": {
    "build": "TSC_COMPILE_ON_ERROR=true react-scripts build",
  },
}
  1. PUBLIC_URL PublicPath
{
  "scripts": {
    "build": "PUBLIC_URL=/my-app react-scripts build",
  },
}