DeviceListReorder, SortableList, MikrotikPortSync are each used on a single page (devices index, escalation/schedule show, device edit form respectively) — push them out of app.js into their own chunks via lazyHook. Also extract MikrotikPortSync into its own file under hooks/ for consistency. Compress CopyToClipboard's flash feedback by collapsing the duplicated success/error inline-SVG/setTimeout blocks into one helper, drop the debug console.logs, and remove the bulk Phoenix-template boilerplate comment block that was just generated noise. After-bundle (minified): app.js 287.6 KB (-2 KB on top of prior split) device_list_reorder 4.6 KB loaded on /devices only sortable_list 3.1 KB loaded on escalation+schedule pages mikrotik_port_sync 1.3 KB loaded on device edit form only |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| vendor | ||
| tsconfig.json | ||