From 88f8077b7748d22f9ef9a8c389eff12608e64051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 17 Oct 2016 12:16:53 +0200 Subject: [PATCH] Plugin JS files might be empty, need to handle that Otherwise webassets will explode with empty file list on bundle creation. --- src/octoprint/server/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index b1e4692d..873122e5 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -1058,6 +1058,8 @@ class Server(object): "js/app/helpers.js", "js/app/main.js"] js_plugins = dynamic_plugin_assets["external"]["js"] + if len(js_plugins) == 0: + js_plugins = ["empty"] js_app = js_plugins + js_core css_libs = [