Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix out of memory crashes during UI development (#1495)

Wouter Born7d303dfba214
diff --git a/ui/util/webpack.util.js b/ui/util/webpack.util.js
index ef659f849..abe809c16 100644
--- a/ui/util/webpack.util.js
+++ b/ui/util/webpack.util.js
@@ -67,7 +67,7 @@ function getAppConfig(mode, isDevServer, dirname, managerUrl, keycloakUrl, port)
output: {
path: dirname + "/dist",
publicPath: "/" + dirname.split(path.sep).slice(-1)[0] + "/",
- filename: "[name].[contenthash].js"
+ filename: production ? "[name].[contenthash].js" : "[name].js"
},
module: {...getStandardModuleRules()},
// optimization: {