Skip to content
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

Possible to specify when to run besides --release? #33

Open
tverilytt opened this issue May 22, 2017 · 4 comments
Open

Possible to specify when to run besides --release? #33

tverilytt opened this issue May 22, 2017 · 4 comments

Comments

@tverilytt
Copy link

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

@rossmartin
Copy link
Owner

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?

@tverilytt
Copy link
Author

Thanks for quick reply :-)

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

Cheers
-jo

@tverilytt
Copy link
Author

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.

@rossmartin
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants