From dc8d48a8ea2f2a57c092a74638c83f3b8e966037 Mon Sep 17 00:00:00 2001 From: Corey Date: Sun, 5 Nov 2023 10:06:55 -0700 Subject: [PATCH] added azure workflow --- src/components/Login/index.jsx | 2 -- webpack.config.js | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Login/index.jsx b/src/components/Login/index.jsx index 5d02f0f..a1bdaf1 100644 --- a/src/components/Login/index.jsx +++ b/src/components/Login/index.jsx @@ -32,8 +32,6 @@ const Login = ({ return null; } - console.log(JSON.stringify(process.env)); - return (
diff --git a/webpack.config.js b/webpack.config.js index e6bfeb5..66483ba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,6 +5,8 @@ const HtmlWebPackPlugin = require('html-webpack-plugin'), WorkboxPlugin = require('workbox-webpack-plugin'), MiniCssExtractPlugin = require('mini-css-extract-plugin'); +console.log(`NODE_ENV: ${JSON.stringify(process.env.NODE_ENV)}`); + if (process.env.NODE_ENV == "production") { require('dotenv').config({ path: '.env.release' }); } @@ -36,6 +38,7 @@ if (process.env.PUBLIC_URL) { const devServerHost = process.env.WEBPACK_HOST || 'localhost'; module.exports = (env, options) => ({ + entry: { main: './src/index.jsx', },