Webpack config: provide raw asset loading rule

オープン
#837 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, webpack

調査の方向性

リポジトリのデフォルトのwebpack設定から始め、frontend-app-communications PR 193のローカル実装と比較します。グローバル設定がraw assets用のAsset Module Syntaxルールを提供し、raw-loaderが不要になった時点で作業は完了です。

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

説明

There are a few places in the frontend codebase that use the Webpack-specific raw-loader to load assets, for one reason or another. (For example, in frontend-app-discussions.) We should instead be using Asset Module Syntax, as it's more similar to what Vite and Rsbuild are doing, and it doesn't require an additional dependency. (I.e: it'll make our lives easier when porting.)

This was implemented locally in https://github.com/openedx/frontend-app-communications/pull/193/files, but we should provide the asset rule globally, in the default webpack configuration.

主要言語
JavaScript
スター
38
フォーク
90
平均マージ
3分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/frontend-platform のほかの issue

openedx/frontend-platform の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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