Feature request: add indexHtmlTransformer and plugins options to application builder
- Langage dominant
- TypeScript
- Étoiles
- 27k
- Forks
- 11.8k
- Merge moyen
- 14 h 23 min
- PR mergées (30 j)
- 162
Description
### Command
build
### Description
Hi. This feature exists for a long time in angular-builders and nx custom builders' code.
`plugins` allows adding vite plugins; we use this option to use custom plugin with .env file parsing, adding ENVIRONMENT_NAME and __APP_VERSION__ global variables and much more. I guess there are plenty of other use-cases for this.
`indexHtmlTransformer` allows to replace some placeholders in index.html while building or serving an app. Useful to make similar DX when building or developing locally my app.
There is [not much to do](https://github.com/nrwl/nx/blob/master/packages/angular/src/executors/application/application.impl.ts) with these two, but i think this will boost DX many times.
Thanks for your time!
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
https://github.com/nrwl/nx/blob/master/packages/angular/src/executors/application/application.impl.ts
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lire le point d’entrée de l’Angular application builder et comparer son comportement avec nx/packages/angular/src/executors/application/application.impl.ts, l’implémentation liée dans l’issue. Suivez la manière dont les options de build et de serve sont gérées, puis vérifiez que plugins et indexHtmlTransformer peuvent être configurés pour les deux workflows et que les tests application-builder existants couvrent le comportement finalisé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript, vite
- Domaine
- build-system, cli, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100