deg-skeletor / skeletor-core

The core engine for the Skeletor family of build tools
0 stars 0 forks source link

added task config option to control NODE_ENV variable #33

Closed heaper closed 6 years ago

heaper commented 6 years ago

Some tasks may need the NODE_ENV variable set to "production" in order for various plugins to produce production-ready output. Task configs can now have an optional environment property that the task runner will use to set NODE_ENV variable when that task is run:

{ name: 'export', environment: 'production' }

Interested to know what you guys think about this idea and/or the naming convention I used for the property.