angular / angular/angular-cli

Feature request: add indexHtmlTransformer and plugins options to application builder

Abierto
#28,607 6 comentarios 3 reacciones 0 asignados Ver en GitHub
needs: more info
Lenguaje dominante
TypeScript
Estrellas
27k
Forks
11.8k
Merge medio
14 h 23 min
PR fusionados (30 d)
162

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza leyendo el punto de entrada del Angular application builder y comparando su comportamiento con nx/packages/angular/src/executors/application/application.impl.ts, la implementación enlazada en la issue. Traza cómo se gestionan las opciones de build y serve; después, verifica que plugins e indexHtmlTransformer se puedan configurar para ambos flujos de trabajo y que las pruebas existentes de application-builder cubran el comportamiento completo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript, vite
Área
build-system, cli, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.