UNPKG

849 BJavaScriptView Raw
1/* eslint-env node */
2'use strict';
3
4module.exports = function(deployTarget) {
5 let ENV = {
6 build: {}
7 // include other plugin configuration that applies to all deploy targets here
8 };
9
10 if (deployTarget === 'development') {
11 ENV.build.environment = 'development';
12 // configure other plugins for development deploy target here
13 }
14
15 if (deployTarget === 'staging') {
16 ENV.build.environment = 'production';
17 // configure other plugins for staging deploy target here
18 }
19
20 if (deployTarget === 'production') {
21 ENV.build.environment = 'production';
22 // configure other plugins for production deploy target here
23 }
24
25 // Note: if you need to build some configuration asynchronously, you can return
26 // a promise that resolves with the ENV object instead of returning the
27 // ENV object synchronously.
28 return ENV;
29};