From 4ecef82de0b91cecbe116816fc9e0054260337f9 Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Thu, 6 Jul 2023 16:27:29 +0200 Subject: [PATCH] [FIX] Allow usage of after/before task assignment of generateBundle --- lib/build/definitions/application.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/build/definitions/application.js b/lib/build/definitions/application.js index 5a21557fc..9a61795ca 100644 --- a/lib/build/definitions/application.js +++ b/lib/build/definitions/application.js @@ -100,6 +100,11 @@ export default function({project, taskUtil, getTask}) { }, Promise.resolve()); } }); + } else { + // No bundles defined. Just set task so that it can be referenced by custom tasks + tasks.set("generateBundle", { + taskFunction: async () => {} + }); } tasks.set("generateVersionInfo", {