Split the web bundle (555 kB, Vite warns about it)

Đang mở
#7 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bun, react, typescript, vite

Hướng nghiên cứu

Start by reading the web app entry point and Vite build configuration, then run npm run build to identify the 555 kB bundle and its dependencies. Trace the live view, card dialog, search, easyUI, and mock backend imports; the issue names web/src/api/mock.ts and fakepage.ts as demo-only. Done when the build has no size warning and the board works in demo mode and against a real server.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement good first issue

npm run build produces one 555 kB JavaScript file (173 kB gzipped) and Vite warns about chunks over 500 kB.

The live view, the card dialog, search and the easyUI parts are only needed after the first screen. Loading them with React.lazy / dynamic import() should bring the first load well under the limit. The simulated backend (web/src/api/mock.ts, fakepage.ts) should only end up in the demo build.

Done when npm run build shows no size warning and the board still works in both npm run demo and against a real server.

Ngôn ngữ chính
TypeScript
Star
0
Fork
1
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của isaaclins/taskboard

Tất cả issue của isaaclins/taskboard

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.