Build process hook
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 162
説明
### Desired functionality
It would be nice to have a hook in the build process, between the index generation and the hash computation, for execute something.
I try to use the Critical lib with my Angular project. First, I build my app, then I use Critical script in order to inline my CSS in the index file : I rewrite my index file. It was messed up with Angular SW, so I submit an issue in Angular's Github (https://github.com/angular/angular/issues/25267).
@gkalpak explains that the issue result from the stored hash mismatch, because of the rewrite of index file.
コントリビューションガイド
調査の方向性
まず、index の生成から hash の計算まで、Angular CLI の build プロセスを追跡します。これらの段階の間に hook を実行できる箇所を確認し、その後、hashing の前に post-generation action を実行することで最終的な index hash が保持され、issue で説明されている Angular service-worker mismatch が解消されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100