Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Allow specifying public path for worker files #80

Closed
jimmydief opened this issue Nov 15, 2019 · 0 comments · Fixed by #81
Closed

Allow specifying public path for worker files #80

jimmydief opened this issue Nov 15, 2019 · 0 comments · Fixed by #81
Milestone

Comments

@jimmydief
Copy link
Contributor

We use Webpack's dynamic public path feature to set the URL from which we fetch our static resources at runtime. This allows us to programmatically enable/disable use of our CDN. Unfortunately, loading cross-origin workers is not allowed for security reasons so it's important that we continue to load worker files from the page origin even when the CDN is enabled.

In order to make this possible, a publicPath option could be introduced that overrides the normal Webpack dynamic/compilation public paths if specified. This option is already supported by worker-loader, mini-css-extract-plugin, and other similar tools.

@alexdima alexdima added this to the December 2019 milestone Dec 19, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants