I have a webpack config defined as a function:
module.exports = (env, args)=>{ console.log(env) //<== undefined const envPath = env.ENVIRONMENT ? `.