Unable to load source maps when dart web project is not hosted in root folder.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- dart
- 領域
- build-system, cli, web-dev
調査の方向性
Start by reproducing the non-root deployment with webdev build --no-release, then inspect the generated bootstrap.js and require.js code where baseUrl is computed. The work is done when a build accepts the requested base URL, generates valid source-map imports under /v2, and does not require the conflicting <base> workaround.
索引モデルが issue の本文から書いたものです。
説明
Hi Team,
Our team migrated from the Google web tool kit to Dart recently.
Where
- v1 folder is legacy web project build using GWT framework
- v2 folder is migrated web project using Dart SDK.
Our web server hosts both versions from different folder paths.
We were trying the source mapping feature supported by webdev using command 'webdev build --no-release'
Unfortunately, the scripts were not imported properly due to the invalid import file path set by bootstrap.js & require.js.
On further debugging, I understood the issue is because of the baseUrl function which returns "/" instead of expected "/v2".
Reading through the documentation, I found some suggestions related to adding <base href="/v2">, which do resolve the issue, but caused page routing and image loading issues.
I was able to resolve the issue by returning "/v2" by default instead of "/" in baseUrl Function of generated bootstrap.js and require.js.
Hence I request the team to add an new command line argument to set baseUrl of project.
Ex: webdev build --no-release --base-url="/v2"
- 主要言語
- Dart
- スター
- 224
- フォーク
- 95
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dart-lang/webdev のほかの issue
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web apps対応中かも @Markzipan が今日担当しました。 オープンP1 package:dwds triaged type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
P2 triaged
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
P3 triaged
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
P2 package:dwds triaged type-bug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
P2 package:dwds triaged type-bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
dart-lang/webdev の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aaronified/fluenough#918 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 3 日以内に返信
-
[UX][Mobile] show feedback and privacy notice button in overflow menu対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea-clientside-dartpad
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信