google/closure-compiler-js

passing --defines on command line

reshadi opened this issue · 4 comments

Hello,
The 'defines' flag expects an object, but I could not figure out how to pass an object on the command line.
The java version accepts multiple --define "name=value" on the CLI.
The js version is using minimist and I could find any code that converts cli arguments to an object. If I pass multiple, it turns them into an array, not an object that is expected.
Is there a way to do this from cli?

If not, I can contribute the code.

Thanks.

The CLI version of the -js compiler was contributed. It's likely that it doesn't support the same syntax as the Java version, and we'd be happy for you to contribute it.

Ok, sent the pull request.
thanks.

Hello, this pull request has been merged, any idea when the next release will be?
thanks.

It's release everytime the main compiler is released.