From 1c00a455f17c9b472d26a3482834f00db7af00a7 Mon Sep 17 00:00:00 2001 From: djmaze Date: Tue, 20 Oct 2020 19:54:10 +0200 Subject: [PATCH] Bugfix: Terser keep_classnames due to AbstractModel and AbstractCollectionModel --- README.md | 10 +++++----- tasks/js.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2de06793a..91777b628 100644 --- a/README.md +++ b/README.md @@ -116,13 +116,13 @@ RainLoop 1.14 vs SnappyMail |js/min/* |RainLoop |Snappy |Rain gzip |gzip |brotli | |--------------- |--------: |--------: |--------: |--------: |--------: | -|admin.min.js | 252.147 | 91.510 | 73.657 | 23.529 | 20.480 | -|app.min.js | 511.202 | 322.449 |140.462 | 83.183 | 67.656 | +|admin.min.js | 252.147 | 92.652 | 73.657 | 23.778 | 20.706 | +|app.min.js | 511.202 | 325.099 |140.462 | 83.865 | 68.191 | |boot.min.js | 66.007 | 2.918 | 22.567 | 1.500 | 1.275 | -|libs.min.js | 572.545 | 134.315 |176.720 | 48.216 | 42.855 | +|libs.min.js | 572.545 | 134.376 |176.720 | 48.321 | 42.972 | |polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 | -|TOTAL |1.434.353 | 551.192 |424.718 |156.428 |132.266 | -|TOTAL (no admin) |1.182.206 | 459.682 |351.061 |132.899 |111.786 | +|TOTAL |1.434.353 | 555.045 |424.718 |157.464 |133.144 | +|TOTAL (no admin) |1.182.206 | 462.393 |351.061 |133.686 |112.438 | For a user its around 61% smaller and faster than traditional RainLoop. diff --git a/tasks/js.js b/tasks/js.js index 08edc74d1..401f4935d 100644 --- a/tasks/js.js +++ b/tasks/js.js @@ -76,6 +76,7 @@ const jsMin = () => output: { comments: false }, + keep_classnames: true, // Required for AbstractModel and AbstractCollectionModel compress:{ ecma: 6, drop_console: true