1.将其添加到package.json脚本中

"ionic:build": "node --max-old-space-size=8192 ./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build"

2.运行命令:
npm run ionic:build --prod

3.运行命令:

cordova build browser --release
cordova build android --release
cordova build ios --release

 

其他方法

1.https://segmentfault.com/a/1190000010437948

2.https://blog.csdn.net/qq_39209832/article/details/88350975

3.https://github.com/ionic-team/ionic-app-scripts/issues/1036

相关文章:

  • 2021-12-08
  • 2021-10-20
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案