当我构建一个{N}应用程序时,ipa或apk文件大小为30MB
tns build ios --release --for-device
Run Code Online (Sandbox Code Playgroud)
并且在上面构建的设备中安装应用程序后,设备的大小为100MB +.任何人都可以帮我这里如何减少应用程序的大小?
- 编写问题在浏览webpack之后,
---我升级到nativescript(2.5.2),angular(2.4.5)和核心模块(2.5.1),将应用程序与webpack(2.2.0)捆绑在一起,app成功运行/捆绑,生成的ipa (与android debug-apk大小相同)在命令下运行时文件大小为21.3MB
npm run build-ios-bundle --release --for-device
Run Code Online (Sandbox Code Playgroud)
但是当应用程序安装在设备/ iTunes中时,应用程序的大小显示为53MB

53MB的应用程序大小也非常庞大,任何人都可以帮助我在这里如何减少应用程序的大小,即使在webpack集成之后.我正在分享我的package.json
{
"description": ".....",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": ".....",
"repository": ".....",
"nativescript": {
"id": "......",
"tns-ios": {
"version": "2.5.0"
}
},
"dependencies": {
"@angular/common": "~2.4.5",
"@angular/compiler": "~2.4.5",
"@angular/core": "~2.4.5",
"@angular/forms": "~2.4.5",
"@angular/http": "~2.4.5",
"@angular/platform-browser": "~2.4.5",
"@angular/platform-browser-dynamic": "~2.4.5",
"@angular/router": "~3.4.5",
"moment": "^2.17.1",
"nativescript-angular": "1.4.1",
"nativescript-angular-snapshot": "1.3.0-5.2.361",
"nativescript-cardview": "^1.2.1",
"nativescript-carousel": "^2.2.0",
"nativescript-dom": "^1.0.8",
"nativescript-fresco": "^1.0.16",
"nativescript-imagepicker": "^2.4.1",
"nativescript-iqkeyboardmanager": "^1.0.1",
"nativescript-pdf-view": …Run Code Online (Sandbox Code Playgroud)