Bugfix: Terser keep_classnames

due to AbstractModel and AbstractCollectionModel
This commit is contained in:
djmaze 2020-10-20 19:54:10 +02:00
parent 188a40b196
commit 1c00a455f1
2 changed files with 6 additions and 5 deletions

View file

@ -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.

View file

@ -76,6 +76,7 @@ const jsMin = () =>
output: {
comments: false
},
keep_classnames: true, // Required for AbstractModel and AbstractCollectionModel
compress:{
ecma: 6,
drop_console: true