Ravi
Ravi

Reputation: 43

ionic app size not decreased even after reducing splash screen size

Hi guys i have been working on ionic app and i have added an splash screen to it the file type was .png and in the beginning its size was 15 MB and my ionic app size was 30 MB now i have reduced the splash screen size to 1.92 MB now my app size is 28.3 MB so little confused and i don't know what to do to reduce the size of the .apk file please do let me know about any possible solution for this Thanks in advance

Upvotes: 1

Views: 183

Answers (1)

I mainly use preen and uglify. See this answer for more information on preen: https://stackoverflow.com/a/37369176/1786341

Remember to include in your index.html, only the minified versions of the libs (*.min.js, *.min.css), and to properly inject the dependencies in your controllers (see this post and the angular docs on dependency injection).

Some useful links:

http://blog.ionic.io/minifying-your-source-code/

https://www.joshmorony.com/how-to-minify-an-ionic-application-for-production/

Upvotes: 1

Related Questions