Feature: Fully offline export

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
html, javascript, typescript
Lĩnh vực
build-system, web-dev

Hướng nghiên cứu

Bắt đầu bằng cách lần theo quy trình export HTML và JavaScript, bao gồm headless mode và việc xử lý các dependency của import-map hoặc CDN. Xác định liệu “hoàn tất” có nghĩa là một tệp HTML tự chứa duy nhất, một tệp HTML với các dependency được sao chép cục bộ, hay cả hai, sau đó xác minh rằng kết quả đã export hoạt động mà không cần truy cập mạng.

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

Mô tả

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

When building for example html and JS and then exporting it, ideally (especially for headless mode in CI-like use) there'd be a way to also get an output with all dependencies bundled into the one HTML file or perhaps the file plus the external modules copied locally. This would also simplify the prefix: import map complexity when integrating this output into other projects or deployments/automation, by being able to "vendor" the full deployment rather than inherit the complexity of pulling modules in from various 3rd party CDNs.

One use case is to have github files that are available locally. JSDelivr is good for deployment, but for dev steps, it forces a long cache unless you contact them, unless you update URLs with specific hashes of files as you update them... there's no default way to just use "latest" / @main for repos. So it could be easier for some users to export html + dependencies as a directory to rehost, or optionally one big html file with dependencies baked-in. It could also be useful to switch back to JSDelivr for prod deployments, and local paths / local github repos during dev (which can be loaded in via parent contexts using the SDK also...) Thanks

Additional context

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Contributing Docs
  • I agree to follow this project's Contribution Docs
Ngôn ngữ chính
TypeScript
Star
1.5k
Fork
267
Merge trung bình
7 giờ 47 phút
Pull request đã merge (30 ngày)
14

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 live-codes/livecodes

Tất cả issue của live-codes/livecodes

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.