angular / angular/angular-cli

Build process hook

Ouverte
#11,787 24 commentaires 78 réactions 0 personnes assignées Voir sur GitHub
area: @angular-devkit/build-angular feature feature: under consideration
Langage dominant
TypeScript
Étoiles
27k
Forks
11.8k
Merge moyen
14 h 23 min
PR mergées (30 j)
162

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par suivre le processus de build de Angular CLI, de la génération de l’index jusqu’au calcul du hash. Vérifiez où un hook pourrait être exécuté entre ces étapes, puis confirmez que l’exécution d’une action postérieure à la génération avant le hashing préserve le hash final de l’index et résout le Angular service-worker mismatch décrit dans l’issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
build-system
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.