Feature request: add indexHtmlTransformer and plugins options to application builder
- Vorherrschende Sprache
- TypeScript
- Sterne
- 27k
- Forks
- 11.8k
- Ø Merge
- 14 Std. 23 Min.
- Gemergte PRs (30 T.)
- 162
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Einstiegspunkt des Angular application builder zu lesen und sein Verhalten mit nx/packages/angular/src/executors/application/application.impl.ts, der in der Issue verlinkten Implementierung, zu vergleichen. Verfolge, wie Build- und Serve-Optionen behandelt werden, und überprüfe anschließend, dass plugins und indexHtmlTransformer für beide Workflows konfiguriert werden können und dass die vorhandenen application-builder-Tests das vollständige Verhalten abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript, vite
- Bereich
- build-system, cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100