Conditional build configuration

Is it possible to have two different configure for the build command and activate one or the other based on a condition maybe with a Rake task ? I would like to build un-minified and minified resources just switching a parameter in the command

There’s been some discussion about this:

Your options appear to be to either use environment variables or wait until the 4.0.0 release.