Fonts are not resolved when using base href
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 162
説明
### Command
build
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
I'm trying to deploy an Angular application to GitHub Pages using GitHub Actions. I've set the base href correctly, but the sources aren't showing up. The routes to get the sources ignore the base href. I've also tried specifying the deploy-url, but I get the same result.
### Minimal Reproduction
1. Create a project.
2. Add a custom font that's in the public folder.

3. Build the project with a base href and deploy it.
4. Note that the font URL ignores the base href.
### Exception or Error
```text
```
### Your Environment
```text
Angular CLI: 19.1.7
Node: 22.14.0
Package Manager: npm 10.9.2
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1901.7 (cli-only)
@angular-devkit/core 19.1.7 (cli-only)
@angular-devkit/schematics 19.1.7 (cli-only)
@schematics/angular 19.1.7 (cli-only)
```
### Anything else relevant?
_No response_
コントリビューションガイド
調査の方向性
まず、`public` フォルダー内のカスタムフォントと設定済みの base href を使って `build` コマンドを再現します。Angular CLI のビルドがフォント URL をどのように生成するかを追跡し、その後、ビルド済みの出力がサイトのルートではなくベースパス配下でそれを解決することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100