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