🥅 Disable minification only for third party plugins
Better solution than 7915e6c04e.
Closes #3640
This commit is contained in:
1 parent
7915e6c04e
commit
6bac39c193
2 files changed
+5
-4
No files matched your search
@@ -1605,7 +1605,8 @@ class Server(object):
|
||||
filters.append("rjsmin")
|
||||
filters.append("gzip")
|
||||
|
||||
js_filters = js_plugin_filters = filters
|
||||
js_filters = filters
|
||||
js_plugin_filters = [x for x in js_filters if x not in ("rjsmin",)]
|
||||
|
||||
def js_bundles_for_plugins(collection, filters=None):
|
||||
"""Produces JsPluginBundle instances that output IIFE wrapped assets"""
|
||||
@@ -1645,7 +1646,7 @@ class Server(object):
|
||||
|
||||
js_app_bundle = Bundle(js_plugins_bundle, js_core_bundle,
|
||||
output="webassets/packed_app.js",
|
||||
filters=",".join(js_filters))
|
||||
filters=",".join(js_plugin_filters))
|
||||
|
||||
js_client_core_bundle = Bundle(*clientjs_core,
|
||||
output="webassets/packed_client_core.js",
|
||||
@@ -1660,7 +1661,7 @@ class Server(object):
|
||||
|
||||
js_client_bundle = Bundle(js_client_core_bundle, js_client_plugins_bundle,
|
||||
output="webassets/packed_client.js",
|
||||
filters=",".join(js_filters))
|
||||
filters=",".join(js_plugin_filters))
|
||||
|
||||
# -- CSS -------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -415,7 +415,7 @@ default_settings = {
|
||||
"webassets": {
|
||||
"bundle": True,
|
||||
"clean_on_startup": True,
|
||||
"minify": False
|
||||
"minify": True
|
||||
},
|
||||
"useFrozenDictForPrinterState": True,
|
||||
"showLoadingAnimation": True,
|
||||
|
||||
Reference in new issue
Block a user