feature request: single assets in i18n builds
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 162
説明
### Command
build
### Description
Hi.
Currently angular just copy assets folder to every localized build. This leads to enormous dist size (in my case every locale with assets weigths 180MB, which can be multiplied by 15 locales).
### Describe the solution you'd like
My proposal is to put assets folder in root directory, instead of copying it inside every built locale, and symlink it inside every locale. This will give us better build times, and also will fix issues where developers use absolute urls to assets, eg:
```
```
My solution will give developers a way to use localized builds in mobile apps development (with capacitor for example; for now it’s strange to publish mobile app which weights over 2gb), better build times (no need to copy assets to every locale), better deploy times (transfer 180mb instead of 2.7GB)
### Describe alternatives you've considered
Currently, the only issue i encounter, is absolute path usage (described it in my example with img src). I make symlink to get this working:
/en/assets -> /assets
コントリビューションガイド
調査の方向性
ビルドコマンドから始め、各ローカライズ済みビルドにどのように assets がコピーされるかを追跡します。現在の locale ごとの出力を、提案されている root レベルの assets および locale symlink と比較します。assets が重複せず、絶対 /assets URL が引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- build-system, localization
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100