From 4d7690888ba6cc7dcbe7886b50e22241d4077d47 Mon Sep 17 00:00:00 2001 From: andres alcocer Date: Tue, 8 Feb 2022 19:21:46 -0500 Subject: [PATCH] console.log dotenv --- webpack.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a556008..45a3403 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,9 +8,10 @@ var path = require('path') module.exports = () => { // call dotenv and it will return an Object with a parsed key + console.log('PROCESS', process.env.NODE_ENV) const env = dotenv.config().parsed - console.log('process------', process.env.API_KEY) - console.log('env------', dotenv.config()) + // console.log('process------', process.env.API_KEY) + // console.log('env------', dotenv.config()) // reduce env variables to an oject const envKeys = Object.keys(env).reduce((prev, next) => { @@ -18,6 +19,8 @@ module.exports = () => { return prev }, {}) + console.log('key', envKeys) + return { entry: './src/index.js', output: {