angular / angular/angular-cli

No way to access compilation output files

Đang mở
#27,386 10 bình luận 24 reaction 0 người được giao Xem trên GitHub
angular/build:application area: @angular/build feature feature: under consideration freq1: low
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

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.

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 các đường dẫn build và serve của application builder và hook onEnd của esbuild plugin, sau đó kiểm tra cách result.outputFiles hiện đang được exposed. Xác định cách tập hợp đầy đủ các tệp được phát ra, bao gồm polyfills, assets và styles, hoặc kết quả của build command, cần expose các tên tệp có hash như thế nào. Hoàn thành có nghĩa là consumer của plugin hoặc builder có thể truy cập tất cả các tệp đầu ra của quá trình biên dịch để tạo một manifest.

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

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
build-system
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/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.