Skip to content

Allow for dynamic webpack public paths #47

Open
@ScottPeterJohnson

Description

@ScottPeterJohnson

According to the webpack docs, you can configure a dynamic public path for output files (like the web worker file) at runtime by adding __webpack_public_path__ = myRuntimePublicPath; to the top of your entry. However, this plugin generates a one-line entry e.exports = __webpack_public_path__ + "rustworker.worker.js".

It would be great if there were some configuration option for this plugin to allow adding the runtime public path override line to the generated entry.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions