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

**URL:** <https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317>\
**Category:** ionic-v1\
**Created:** [November 7, 2014, 9:08am UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317 "2014-11-07T09:08:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strutsagget](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/strutsagget/32/65556_2.png) [@Strutsagget](https://forum.ionicframework.com/u/Strutsagget)\
**Post date:** [November 7, 2014, 9:08am UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317/1 "2014-11-07T09:08:14Z")

</div>

Hi

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>

```

to

```
<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

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [November 7, 2014, 11:47am UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317/2 "2014-11-07T11:47:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DFull](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dfull/32/12976_2.png) [@DFull](https://forum.ionicframework.com/u/DFull)\
**Post date:** [November 7, 2014, 12:04pm UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317/3 "2014-11-07T12:04:36Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![edd](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@edd](https://forum.ionicframework.com/u/edd)\
**Post date:** [November 7, 2014, 12:08pm UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317/4 "2014-11-07T12:08:54Z")

</div>

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](http://en.wikipedia.org/wiki/Minification_%28programming%29) 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.

---

<div class="post-metadata">

**Author:** ![Strutsagget](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/strutsagget/32/65556_2.png) [@Strutsagget](https://forum.ionicframework.com/u/Strutsagget)\
**Post date:** [January 19, 2015, 10:43am UTC](https://forum.ionicframework.com/t/what-files-can-i-remove-and-how-to-use-min-files/12317/5 "2015-01-19T10:43:22Z")

</div>

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.
