Plugin JS files might be empty, need to handle that

Otherwise webassets will explode with empty file list on bundle creation.
This commit is contained in:
Gina Häußge 2016-10-17 12:16:53 +02:00
parent eabff453cd
commit 88f8077b77

View file

@ -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 = [