1 2 3 4 5 6 7 8 9 | 1 1 1 1 1 | var path = require('path'); var devConfigPath = path.join(__dirname, './development.js'); var productionConfigPath = path.join(__dirname, './production.js'); Iif (process.env.NODE_ENV === 'production') { module.exports = require(productionConfigPath); } else { module.exports = require(devConfigPath); } |