From 85ec9d79ace12cf37c3569b920ba542942f23371 Mon Sep 17 00:00:00 2001 From: MaiaVictor Date: Tue, 28 Sep 2021 23:52:13 -0300 Subject: [PATCH] Fix build with 1 app --- web/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/build.js b/web/build.js index ba44011d..e7ff0e5b 100644 --- a/web/build.js +++ b/web/build.js @@ -34,9 +34,9 @@ const build_server = process.env.PRODUCTION; if (process.argv[2]) { // Only build 1 App app = all_kind_apps.filter(name => { - const match = process.argv[2].toLowerCase().slice(4) // remove "App." + const match = process.argv[2].toLowerCase() return name.toLowerCase().endsWith(match) - || name.toLowerCase().endsWith(match+".kind"); + || name.toLowerCase().endsWith(match+".kind"); })[0]; if (app) { compiled_apps = compile_app(app);