mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #18651 from vector-im/palid/fix/webpack-dev
Fix CI using invalid NODE_ENV
This commit is contained in:
commit
687ba9ed01
@ -38,6 +38,8 @@ import { createClient } from "matrix-js-sdk/src/matrix";
|
|||||||
|
|
||||||
let lastLocationHashSet: string = null;
|
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
|
// Parse the given window.location and return parameters that can be used when calling
|
||||||
// MatrixChat.showScreen(screen, params)
|
// MatrixChat.showScreen(screen, params)
|
||||||
function getScreenFromLocation(location: Location) {
|
function getScreenFromLocation(location: Location) {
|
||||||
|
@ -462,11 +462,6 @@ module.exports = (env, argv) => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
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.
|
// This exports our CSS using the splitChunks and loaders above.
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: useHMR ? "bundles/[name].css" : "bundles/[hash]/[name].css",
|
filename: useHMR ? "bundles/[name].css" : "bundles/[hash]/[name].css",
|
||||||
|
Loading…
Reference in New Issue
Block a user