Support renaming of asset file
未關閉
area: @angular-devkit/build-angular
devkit/build-angular:browser
feature
feature: under consideration
- 主要語言
- TypeScript
- 星號
- 27k
- 分支
- 11.8k
- 平均合併
- 14 小時 23 分鐘
- 30 天內合併 PR
- 162
描述
### Feature request
It would be nice have an option to rename an asset in certain situations, e.g. when having conflicts in third party stuff.
Add property "filename" with the new file name.
Will only be used when the glob resolves to exactly one file.
```
"assets": [
{ "glob": "**/*", "input": "./assets/", "output": "./assets/" },
{ "glob": "favicon.ico", "input": "./", "output": "./", "filename": "newname.ico" },
]
```
貢獻指南
研究方向
先追蹤解析並複製 assets glob 的 Angular CLI 程式碼,使用此 issue 中的設定範例作為預期輸入。找出相關的 asset 處理測試,然後確認單一符合的 asset 可以使用設定的檔案名稱,同時維持現有的 glob 行為不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript
- 領域
- build-system
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100