What files can i remove and how to use min files?


I wonder what i should do if i want to use the minified files only in my project.

What do i need to change in index.html and what files can i then remove? Is there any other files i need to change?

is it enough to change

<script src="lib/ionic/js/ionic.bundle.js"></script>


<script src="lib/ionic/js/ionic.bundle.min.js"></script>

and then remove the all the files that doesn’t end with min.js?

im talking about the files in lib/ionic

Yep. All you need is the min.js if you aren’t going to use the others for debugging.

What is the goal of min file for ionic project?

Reduce the size is useless since the .js and .css files are not downloaded unlike a website.
How important is the improve of performance with min file? (< 2% I think)

Lots of libraries, frameworks or components are distributed with a .js and a min.js version. They are functionally the same, just the .js version is readable but the .min.js has been minified to reduce size. If you include the .min.js versions you can remove the .js versions. You still need to include any .min.js versions in your index.html script tags though.

Yes probably irrelevant in 99% av the cases. But as a project grovs big it is sometimes desirable to make the app package small to download from the appstore. And sometimes the only way is minifying a lot of js files.