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

Closure parameter to @define JS variables #127

Closed
zeroinformatique opened this issue Oct 6, 2016 · 1 comment
Closed

Closure parameter to @define JS variables #127

zeroinformatique opened this issue Oct 6, 2016 · 1 comment
Assignees
Milestone

Comments

@zeroinformatique
Copy link

I have a simple code to add DEBUG informations during development.

/**
 * For the Closure compiler
 * @define {boolean}
 */
var DEBUG = true;
[...]
DEBUG && log(stuff);

The Closure compiler's documentation states that you can force a variable with the parameter :
--define='DEBUG=false'

I don't see a way to inject this parameter with samaxes. Is it possible?

@samaxes samaxes added this to the 1.7.5 milestone Oct 29, 2016
@samaxes samaxes self-assigned this Oct 29, 2016
@samaxes
Copy link
Owner

samaxes commented Oct 29, 2016

Just added support for this in version 1.7.5.

@samaxes samaxes closed this as completed Oct 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants