create-react-app创建的项目打包后的文件很大

在使用react-create-app脚手架搭建的项目,在我们编译打包时会产生很多.map文件,导致编译后的项目非常大,怎么让打包后的文件不包含.map文件呢,只需案下面修改对应的配置即可 在node-module/react-scripts/config/webpack.config.prod.js,把devtool设置为false即可
相关文章
相关标签/搜索