cabbagejs / cabbage

A CLI for building conventional web applications with Broccoli
MIT License
5 stars 0 forks source link

replace env branches with env-specific config files #33

Closed searls closed 9 years ago

searls commented 9 years ago

right now we do a lot of if production then sorta logic, but it'd probably be more flexible to read from config what to do, and to set the enable/disable flags in env-specific overrides

Rather than generate all these in the blueprint project, doing the same sorta dance where config/development exists in both cabbage and user dirs with users free to override seems to make the most sense.

One clear cut example of this would be:

js:
  uglify:
    enabled: true

In config/production, but false in config/development and config/test