设置“优化”时无法在 chrome 开发工具中进行调试:angular.json 中为 true

问题描述

当我在 angular.json 中设置 optimizations = true 时,我们在 chrome devtools 中调试时遇到问题,并且断点未命中,或者在相应的打字稿文件中的错误行

  "local": {
              "budgets": [
                {
                  "type": "anyComponentStyle","maximumWarning": "6kb"
                }
              ],"optimization": true,"outputHashing": "all","sourceMap": {
                "scripts": true,"styles": true,"hidden": false,"vendor": false
              },

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)