From 231ff3a73d9de61e38072cd89a52399d6a4bdac5 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 23 Aug 2021 12:35:43 +0200 Subject: [PATCH] Fix CI having invalid node_env --- src/vector/app.tsx | 2 ++ webpack.config.js | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vector/app.tsx b/src/vector/app.tsx index d609a2558..35e20a083 100644 --- a/src/vector/app.tsx +++ b/src/vector/app.tsx @@ -38,6 +38,8 @@ import { createClient } from "matrix-js-sdk/src/matrix"; let lastLocationHashSet: string = null; +console.log(`Application is running in ${process.env.NODE_ENV} mode`); + // Parse the given window.location and return parameters that can be used when calling // MatrixChat.showScreen(screen, params) function getScreenFromLocation(location: Location) { diff --git a/webpack.config.js b/webpack.config.js index fa5ad87d7..db69ed5a2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -462,11 +462,6 @@ module.exports = (env, argv) => { }, plugins: [ - new webpack.EnvironmentPlugin({ - NODE_ENV: 'development', // use 'development' unless process.env.NODE_ENV is defined - DEBUG: false, - }), - // This exports our CSS using the splitChunks and loaders above. new MiniCssExtractPlugin({ filename: useHMR ? "bundles/[name].css" : "bundles/[hash]/[name].css",