- reads .envfile whenNODE_ENV!==production, defaultprocess.cwd() + '.env'(full path can be overwritten by settingDOTENV_FILE- how ironic :D)
- replaces occurences of process.env.Xwith the value
- somehow hacky, because as an optimizer it just uses a dumb regex to replace all process.envwith its values