ionic3生产打包javascript内存溢出的解决方法


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM