Feature request: add indexHtmlTransformer and plugins options to application builder
- 主要语言
- TypeScript
- 星标
- 27k
- 派生
- 11.8k
- 平均合并
- 14 小时 23 分钟
- 30 天内合并 PR
- 162
描述
### 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
贡献指南
调研方向
首先阅读 Angular application builder 的入口点,并将其行为与 issue 中链接的实现 nx/packages/angular/src/executors/application/application.impl.ts 进行比较。跟踪 build 和 serve 选项的处理方式,然后验证 plugins 和 indexHtmlTransformer 是否都能为两种工作流进行配置,以及现有的 application-builder 测试是否覆盖了完成后的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript, vite
- 领域
- build-system, cli, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100