Config for certain environments

I’m wondering if anyone can share some approaches for conditional statements by environments in config.rb.

I have an issue when I run middleman console because my webpack causes disruptions.

I also have unit testing with RSpec and right now I’m commenting a large portion of my config.rb out when I was to use the console or run my tests.

I could add env vars when I run middleman console or test, but I’d prefer a more elegant solution.