cordova-uglify
cordova-uglify copied to clipboard
Possible to specify when to run besides --release?
Hi! Thanks for nice plugin :-)
I wonder if it is possible to specify whether to run cordova-uglify or not, besides the --release option? E.g. if one wants to use the plugin for certain platforms, and not for others, or for easy testing with or without uglify.
Cheers -jo
Sorry its taken me awhile to respond. It is certainly possible but I'm not sure how you want to specify whether to run the uglify hook or not. There is the alwaysRun
option in the config. Were you thinking of supporting a different option than --release
?
Thanks for quick reply :-)
Well, I was thinking kind of an --uglify option maybe...
Cheers -jo
One easy way to handle this seems to be to move the uglify hook files in after_prepare in and out of that directory depending on whether one wants to uglify with --release.
I could make the command for starting the hook configurable. This is something I may get to soon. Sorry I've been really busy lately.