cordova-uglify icon indicating copy to clipboard operation
cordova-uglify copied to clipboard

Possible to specify when to run besides --release?

Open tverilytt opened this issue 7 years ago • 4 comments

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

tverilytt avatar May 22 '17 08:05 tverilytt

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?

rossmartin avatar May 24 '17 04:05 rossmartin

Thanks for quick reply :-)

Well, I was thinking kind of an --uglify option maybe...

Cheers -jo

tverilytt avatar May 24 '17 15:05 tverilytt

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.

tverilytt avatar Jul 12 '17 10:07 tverilytt

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.

rossmartin avatar Jul 18 '17 21:07 rossmartin