angular / angular/angular-cli

[browser-esbuild] live-reload=false workflow is less convenient now

Đang mở
#27,479 2 bình luận 5 reaction 0 người được giao Xem trên GitHub
area: @angular-devkit/build-angular devkit/build-angular:dev-server freq1: low severity2: inconvenient type: bug/fix
Ngôn ngữ chính
TypeScript
Star
27k
Fork
11.8k
Merge trung bình
14 giờ 23 phút
Pull request đã merge (30 ngày)
162

Mô tả

### Command

serve

### Description

I often work with `live-reload` disabled. This is helpful when working on CSS changes, I can try things in browser and then make multiple edits in files before manually reloading.
It's also faster when working on a laptop.

Before esbuild:
1. Make changes.
2. Refresh page.
3. Page reloads after new changes have been compiled.

With esbuild:
1. Changes.
2. Refresh.
3. Page reloads immediately before changes have been compiled. Now I need to monitor terminal and reload the page after successful compilation.

### Describe the solution you'd like

I was okay with the old behaviour where server wouldn't respond before successful compilation.

A less desired alternative would be to log Vite messages in browser's console, so that I can tell when compilation has finished there.

### Describe alternatives you've considered

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với quy trình làm việc của lệnh `serve` khi dùng `live-reload=false` và theo dõi cách các yêu cầu của trình duyệt hoạt động trong khi esbuild biên dịch các thay đổi. Tái hiện chuỗi làm mới, sau đó xác minh rằng việc làm mới sẽ chờ biên dịch thành công hoặc việc biên dịch hoàn tất sẽ được hiển thị trong console của trình duyệt.

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

Đánh giá

Công nghệ
typescript
Lĩnh vực
build-system, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.