Feature request: add indexHtmlTransformer and plugins options to application builder
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo l’entry point dell’Angular application builder e confrontandone il comportamento con nx/packages/angular/src/executors/application/application.impl.ts, l’implementazione collegata nell’issue. Traccia come vengono gestite le opzioni di build e serve, quindi verifica che plugins e indexHtmlTransformer possano essere configurati per entrambi i workflow e che i test application-builder esistenti coprano il comportamento completo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript, vite
- Ambito
- build-system, cli, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100