Browse Source

Fix CI having invalid node_env

pull/18651/head
Dariusz Niemczyk 9 months ago
parent
commit
231ff3a73d
No known key found for this signature in database
GPG Key ID: 3E8DC619E3C59A05
  1. 2
      src/vector/app.tsx
  2. 5
      webpack.config.js

2
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) {

5
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",

Loading…
Cancel
Save