rstackjs / rstackjs/html-rspack-plugin
Ported html-rspack-plugin not support output.publicPath with a function
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 4
- Avg merge
- 6h 44m
- Merged PRs (30d)
- 11
Description
Current behaviour 💣
Build program will crash when set output.publicPath as a function.
Expected behBaviour ☀️
Be fine.
Reproduction Example 👾
https://stackblitz.com/github/Gehbt/reprod-rspack-external-html-plugin
reproduct:
run pnpm run build
Environment 🖥
no matter
Additional comments
It is looks like rspack's compilation.getAssetPath not support function at first parameter.
rspack:
webpack:
Contributor guide
No contributing guide indexed for this repository
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 by running pnpm run build in the linked reproduction and compare the rspack and webpack behavior for a function-valued output.publicPath. Then inspect the html-rspack-plugin path that calls compilation.getAssetPath; done means the reproduction builds successfully with the function form instead of crashing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100