Keep this in package.json:
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"winBuild": "set "GENERATE_SOURCEMAP=false" && react-scripts build",
Use npm run build
for creating build on Linux.
Use npm run winBuild
for creating build on Windows.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…