Closed kmeht closed 9 years ago
@j0hnsmith, does this look okay?
Just seen this, I'll check it out tonight
ping @j0hnsmith
Is setting env vars before running node commands a common thing to do (I don't really use node that much)?
Not sure how common it is, but definitely useful. I could just set the PIPELINE_BROWSERIFY_BINARY
based on DEBUG
to achieve the same result, if this behavior is not something you want in the main repo :)
This adds a
PIPELINE_BROWSERIFY_VARS
setting to optionally specify environment variables before thebrowserify
command is executed. For example, I'd like to specifyNODE_ENV=production
, which (in my use-case) will allow me to strip out dev-only code during the compression phase.