angular / angular/angular-cli

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

未關閉
#27,479 2 則留言 5 個 reaction 已指派 0 人 在 GitHub 檢視
area: @angular-devkit/build-angular devkit/build-angular:dev-server freq1: low severity2: inconvenient type: bug/fix
主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
14 小時 23 分鐘
30 天內合併 PR
162

描述

### 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_

貢獻指南

開啟貢獻指南

研究方向

從 `serve` 命令的 `live-reload=false` 工作流程開始,追蹤 esbuild 編譯變更時瀏覽器請求的行為。重現重新整理序列,然後確認重新整理會等待編譯成功,或是編譯完成會顯示在瀏覽器主控台中。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
build-system, cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。