angular / angular/angular-cli

No way to access compilation output files

未關閉
#27,386 10 則留言 24 個 reaction 已指派 0 人 在 GitHub 檢視
angular/build:application area: @angular/build feature feature: under consideration freq1: low
主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
14 小時 23 分鐘
30 天內合併 PR
162

描述

### Command

build, serve

### Description

I have an esbuild plugin that is resposible to collect outputFiles after compilation (using `onEnd` hook with `result.outputFiles`).

When using application builder (esbuild) with custom plugins there is no way to access full list of outputFiles, only those emitted by `main` entrypoint compilation. There is no way to access additional files emited by angular builder, such as `polyfills`, assets, styles etc.

Previously, with using webpack plugin, i was able to get full list of outputFiles by using `processAssets` compilation hook.

I need to list emited files, as this is only way to get full names with filenames hash.

MY point is to build something like manifest of compilation result output files.

### Describe the solution you'd like

I would like to be able to access all compilation files by esbuild plugin.

### Describe alternatives you've considered

An alternative could be to access output files as an result of builder output, currently `build` command only returns `{success: true}` without information about output files.

貢獻指南

開啟貢獻指南

研究方向

先從 application builder 的 build 和 serve 路徑以及 esbuild 外掛程式的 onEnd hook 著手,接著檢查 result.outputFiles 目前是如何公開的。確定應如何讓包含 polyfills、assets 和 styles 在內的完整輸出集合,或 build 命令的結果,公開帶有 hash 的檔名。完成標準是:plugin 或 builder 的使用者可以存取所有編譯輸出檔案,以建立 manifest。

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

評估

技術堆疊
angular, typescript
領域
build-system
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

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

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