# Ionic obfuscation

**URL:** <https://forum.ionicframework.com/t/ionic-obfuscation/143260>\
**Category:** ionic-v3\
**Created:** [October 1, 2018, 4:42am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260 "2018-10-01T04:42:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumaresanp](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kumaresanp](https://forum.ionicframework.com/u/kumaresanp)\
**Post date:** [October 1, 2018, 4:42am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/1 "2018-10-01T04:42:02Z")

</div>

I have used ionic-voricles-obfuscate plugin to prevent reverse engineering of my app. It’s working fine as expected but it encrypted all js files. I want to exclude some files like vendor.js and polyfills.js. My configuration looks like below and while building app those files are not excluded

any one help me to resolve this issue? Thanks

---

<div class="post-metadata">

**Author:** ![robinyo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robinyo/32/115964_2.png) [@robinyo](https://forum.ionicframework.com/u/robinyo)\
**Post date:** [October 1, 2018, 8:56am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/2 "2018-10-01T08:56:55Z")

</div>

It looks like the obfuscation has worked!

---

<div class="post-metadata">

**Author:** ![kumaresanp](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kumaresanp](https://forum.ionicframework.com/u/kumaresanp)\
**Post date:** [October 1, 2018, 9:10am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/3 "2018-10-01T09:10:52Z")

</div>

Yes it is working fine. But I want to exclude some files while building APK. I gave list of files to exclude in exclude section of config file that ignored when build.

---

<div class="post-metadata">

**Author:** ![virtualbankingapp](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@virtualbankingapp](https://forum.ionicframework.com/u/virtualbankingapp)\
**Post date:** [May 17, 2019, 3:43am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/4 "2019-05-17T03:43:21Z")

</div>

Hi Kumaresanp

How did you exclude vendor.js and polyfills.js. Can u give your exclude section here

---

<div class="post-metadata">

**Author:** ![virtualbankingapp](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@virtualbankingapp](https://forum.ionicframework.com/u/virtualbankingapp)\
**Post date:** [May 17, 2019, 5:19am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/5 "2019-05-17T05:19:59Z")

</div>

Hi

Are you able to exclude file?  
I tried below section but does not work

```auto
<exclude>
        <file regex="\.(vendor|polyfills)$" />
        </exclude>

<exclude>
        <file regex="\.(vendor.js|polyfills.js)$" />
        </exclude>

```

---

<div class="post-metadata">

**Author:** ![VijayU](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@VijayU](https://forum.ionicframework.com/u/VijayU)\
**Post date:** [July 19, 2019, 3:35am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/6 "2019-07-19T03:35:22Z")

</div>

@kumaresanp Hi Kumerasn, I want to remove the vendor.js and polyfills.js from obfuscation. Am using Azure devops pipeline to build the app. Please share how did you remove the vendor.js and polyfills.js

Thanks  
Vijay

---

<div class="post-metadata">

**Author:** ![sreenumalae](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sreenumalae](https://forum.ionicframework.com/u/sreenumalae)\
**Post date:** [June 17, 2020, 5:13am UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/7 "2020-06-17T05:13:19Z")

</div>

Hey @kumaresanp,  
I’m using ionic-voricles-obfuscate plugin, as expected all my files are encrypted bt still i’m getting an error.  
Can u please help me?

 ![WhatsApp Image 2020-06-17 at 9.12.19 AM](https://global.discourse-cdn.com/ionicframework/original/3X/a/f/af25e81a1fda88a07df38a94026791958d3ba9a9.jpeg)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:54pm UTC](https://forum.ionicframework.com/t/ionic-obfuscation/143260/8 "2021-07-19T20:54:37Z")

</div>

Closed on July 19, 2021, 8:54pm UTC


