Commit 2d9bb9b
committed
perf: drop livechat sourcemaps from meteor bundle and clean dist on build
The livechat widget's webpack build emits full source-map files (~12 MB
in a fresh build, far more with accumulated rebuilds). They are copied
into apps/meteor/public/livechat/ by the rocketchat-livechat plugin and
end up in the Meteor bundle and Docker image without adding runtime
value.
- plugin/build.sh: delete .map files after copying dist into public.
Maps remain in packages/livechat/dist for local debugging or upload
to error tracking.
- packages/livechat: prefix build with yarn clean so dist no longer
accumulates stale hashed chunks across rebuilds (noticed dist growing
to ~500 MB locally vs. ~18 MB fresh).1 parent 9760d84 commit 2d9bb9b
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments