Skip to content

Ported html-rspack-plugin not support output.publicPath with a functionΒ #54

@Gehbt

Description

@Gehbt

Current behaviour πŸ’£

Image

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:
Image

webpack:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions