openedx / openedx/frontend-platform
Webpack config: provide raw asset loading rule
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 91
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the repository's default webpack configuration and compare the local implementation in frontend-app-communications PR 193. The work is done when the global configuration provides an Asset Module Syntax rule for raw assets, avoiding the need for raw-loader.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100