Exclude script from Cordova build


Is it possible, to keep mobile version of app a little bit lightweight from desktop?
I use some js script that doesn’t work on mobile anyway.


The size of the bundle should actually matter less in cordova, since the scripts are all installed directly to the device. But right now there is no way to exclude some files from your app, you can only do it in a package.


Problem is that mobile Safari have more strict rules or something, that blame my js script which works fine on desktop.
I use Avatars.io and it anyway not possible to upload img from mobile, so I was thinking about replace it with something suitable. Nothing found yet.