angular / angular/angular-cli

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

オープン
#27,479 コメント 2 件 リアクション 5 件 担当者 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分
マージ済み PR(30日)
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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`live-reload=false` の `serve` コマンドのワークフローから始め、esbuild が変更をコンパイルしている間にブラウザーのリクエストがどのように動作するかを追跡します。更新のシーケンスを再現し、その後、更新がコンパイルの成功を待機すること、またはコンパイルの完了がブラウザーコンソールに表示されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
build-system, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。