* SmallPART: concatenate and minify all Java/TypeScript files to speed up loading

This commit is contained in:
Ralf Becker 2021-05-25 08:21:17 +02:00
parent 39ad3a7977
commit 03469add3e
2 changed files with 21 additions and 1 deletions

View File

@ -125,7 +125,6 @@ module.exports = function (grunt) {
"api/js/etemplate/et2_core_valueWidget.js", "api/js/etemplate/et2_core_valueWidget.js",
"api/js/etemplate/et2_core_inputWidget.js", "api/js/etemplate/et2_core_inputWidget.js",
"api/js/etemplate/et2_widget_color.js", "api/js/etemplate/et2_widget_color.js",
"api/js/etemplate/et2_widget_countdown.js",
"api/js/jquery/blueimp/js/blueimp-gallery.min.js", "api/js/jquery/blueimp/js/blueimp-gallery.min.js",
"api/js/etemplate/expose.js", "api/js/etemplate/expose.js",
"api/js/etemplate/et2_widget_description.js", "api/js/etemplate/et2_widget_description.js",
@ -196,6 +195,7 @@ module.exports = function (grunt) {
"api/js/etemplate/et2_extension_itempicker_actions.js", "api/js/etemplate/et2_extension_itempicker_actions.js",
"api/js/etemplate/et2_widget_itempicker.js", "api/js/etemplate/et2_widget_itempicker.js",
"api/js/etemplate/et2_widget_script.js", "api/js/etemplate/et2_widget_script.js",
"api/js/etemplate/et2_widget_countdown.js",
"api/js/etemplate/et2_core_legacyJSFunctions.js", "api/js/etemplate/et2_core_legacyJSFunctions.js",
"api/js/etemplate/etemplate2.js" "api/js/etemplate/etemplate2.js"
] ]
@ -279,6 +279,25 @@ module.exports = function (grunt) {
"projectmanager/js/app.js" "projectmanager/js/app.js"
] ]
} }
},
smallpart: {
files: {
"smallpart/js/app.min.js": [
"smallpart/js/et2_widget_videobar.js",
"smallpart/js/et2_videooverlay_interface.js",
"smallpart/js/overlay_plugins/et2_smallpart_overlay_html.js",
"smallpart/js/overlay_plugins/et2_smallpart_question_multiplechoice.js",
"smallpart/js/overlay_plugins/et2_smallpart_question_singlechoice.js",
"smallpart/js/overlay_plugins/et2_smallpart_question_text.js",
"smallpart/js/et2_widget_videooverlay.js",
"smallpart/js/et2_widget_videooverlay_slider_controller.js",
"smallpart/js/et2_widget_videotime.js",
"smallpart/js/et2_widget_comment.js",
"smallpart/js/et2_widget_color_radiobox.js",
"smallpart/js/et2_widget_filter_participants.js",
"smallpart/js/app.js"
]
}
} }
}, },
cssmin: { cssmin: {

View File

@ -252,6 +252,7 @@ class Bundle
'mail' => '/mail/js/app.js', 'mail' => '/mail/js/app.js',
'projectmanager' => '/projectmanager/js/app.js', 'projectmanager' => '/projectmanager/js/app.js',
'messenger' => '/messenger/js/app.js', 'messenger' => '/messenger/js/app.js',
'smallpart' => '/smallpart/js/app.js',
) as $bundle => $file) ) as $bundle => $file)
{ {
if (@file_exists(EGW_SERVER_ROOT.$file)) if (@file_exists(EGW_SERVER_ROOT.$file))