Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 CMD 构建我的项目:
ionic build --prod
但我有这个错误:
我遇到了同样的错误(Ionic + Angular9)并找到了解决方案:只需添加"sideEffects": false到您的 package.json 文件中。
"sideEffects": false
作为参考,我在此处的官方 Angular GitHub 问题页面上找到了此解决方法