xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

create-react-app build without source map file All In One

create-react-app build without source map file All In One

cra

source map

solutions

  1. .env
GENERATE_SOURCEMAP=false

# https://create-react-app.dev/docs/adding-custom-environment-variables/#adding-development-environment-variables-in-env

# https://create-react-app.dev/docs/advanced-configuration/


  1. eject webpack.config,js
$ npm run eject

  1. 手动删除
$ rm -rf *.map

# rimraf
$  rimraf ./build/**/*.map

create-react-app build without the license file

https://blog.csdn.net/iVRJay/article/details/107335791

cra path bug

refs



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-11-22 14:45  xgqfrms  阅读(33)  评论(5编辑  收藏  举报