-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uglify JS files reduced to 'undefined' #46
Comments
I was adding the plugins folder to be compressed and started facing the same issue and I'm not on Windows like you @rolinger one of the plugins JavaScript file is turned into "undefined": |
Ok, I tracked it down: As stated in
The file I mentioned above uses
After changing |
Is there any kind of parser that error checks before attempting to uglify? When I did this time it royally hosed my entire project. I couldn't undo things and I basically had to reinstall my entire project from scratch. I have avoided it since because of this...though I want minify and uglify applied to my project, I can't do it until I know what in my project is breaking things. |
@rolinger yes there is. I used If anyone has time this package could be used to check the files before uglifying until we have ES6 support... also, IDK how you hosed your project but I was also messing with some files earlier and kinda doing the same so here goes 2 tips:
|
coming back to this. I'm now using Terser 5 as an alternative. outputs a few errors but works. |
I know this there is an open issue on this thread already, however, most of the info on that thread is about deploying from a windows machine.
I am having problems with 'cordova-uglify' on my windows machine deploying my project for Android, but now I am having the same problem on my mac deploying for iOS.
The current version of
cordova-uglify
is causing 3 files on my windows -> android deploying to beundefined
, and 9 files on my mac->iOS to beundefined
. Can't use this plugin anywhere.The text was updated successfully, but these errors were encountered: