ionic-team / ionic-team/ionic-docs

content: Angular PWA guide is missing the angular.json step for Angular 18+

オープン 初心者向け
#4,702 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
content package: angular
主要言語
MDX
スター
621
フォーク
3.2k
平均マージ
1日 2時間
マージ済み PR(30日)
86

説明

### URL

https://ionicframework.com/docs/angular/pwa

### Issue Description

The guide's only setup step is `ng add @angular/pwa`, which was accurate before Angular 18 but is no longer sufficient for a project created with `ionic start`.

Since Angular 18 the pwa schematic writes `manifest.webmanifest` and the icons to `public/` and no longer adds an entry to `angular.json`. The Ionic starter's `angular.json` has no `public` asset glob, so those files are never copied into `www/`. On a host with a SPA rewrite the 404 is served as index.html and the browser reports `Manifest: Line: 1, column: 1, Syntax error`.

The page should tell readers to add the public glob to the `assets` array after running the schematic:

{ "glob": "**/*", "input": "public" }

Note there is deliberately no `output` key, so the files land at the web root and match the `` the schematic injects into index.html.

The `ngsw-config.json` sample on the page is also stale relative to what Angular 18+ generates and worth refreshing at the same time.

Reported in ionic-team/starters#1888, which covers the starter-side fix.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Open the Angular PWA guide at https://ionicframework.com/docs/angular/pwa and review the setup instructions, especially the ng add step and the ngsw-config.json sample. Document the angular.json assets entry with { "glob": "**/*", "input": "public" } and refresh the sample for Angular 18+; done means the guide covers the generated public files and web-root manifest behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
半日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
78/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。