Title: download worker script from other domain (cdn) · Issue #42 · NativeScript/worker-loader · GitHub
Open Graph Title: download worker script from other domain (cdn) · Issue #42 · NativeScript/worker-loader
X Title: download worker script from other domain (cdn) · Issue #42 · NativeScript/worker-loader
Description: Hi, I want to download my worker scripts from CDN, it means that __webpack_public_path__ = "https://amlogsextension-int.azureedge.net/" for e.g. This isn't possible at the moment sense root is hardcoded with ./ in the following code insi...
Open Graph Description: Hi, I want to download my worker scripts from CDN, it means that __webpack_public_path__ = "https://amlogsextension-int.azureedge.net/" for e.g. This isn't possible at the moment sense root is hard...
X Description: Hi, I want to download my worker scripts from CDN, it means that __webpack_public_path__ = "https://amlogsextension-int.azureedge.net/" for e.g. This isn't possible at the moment sens...
Opengraph URL: https://github.com/NativeScript/worker-loader/issues/42
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"download worker script from other domain (cdn)","articleBody":"Hi,\r\n\r\nI want to download my worker scripts from CDN, it means that \r\n`__webpack_public_path__ = \"https://amlogsextension-int.azureedge.net/\"` for e.g.\r\n\r\nThis isn't possible at the moment sense `root `is hardcoded with `./`\r\nin the following code inside worker-loader/src/index.js.\r\n\r\n```\r\n`const getPublicPath = file => {\r\n const root = JSON.stringify(\"./\");\r\n const filePath = JSON.stringify(file);\r\n\r\n return `${root} + __webpack_public_path__ + ${filePath}`;\r\n};`\r\n```\r\nThe problem that now getPublicPath returns the following string: \"https://domain1/https://domain2/file.js\"\r\n\r\nIt would be great if there'll be a `?customRoot` option or something like that in the loader and then change the root initialization to `const root = customRoot ? \"\" : JSON.stringify(\"./ + \");`\r\n\r\nI'll be happy to send a PR but I see I'm not authorized.","author":{"url":"https://github.com/raronen","@type":"Person","name":"raronen"},"datePublished":"2019-07-29T14:06:27Z","url":"https://github.com/NativeScript/worker-loader/issues/42"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:102549e6-71af-cbdf-f1bc-8ada6dd7393b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC26:28815B:18D0D54:20F39D1:6B014A6E |
| html-safe-nonce | 9436cd628ff2de587a68d77da04d8a8e329f05c3979e42f4e31ed838b66ae5ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzI2OjI4ODE1QjoxOEQwRDU0OjIwRjM5RDE6NkIwMTRBNkUiLCJ2aXNpdG9yX2lkIjoiNTY2NjEzNzM1NTA5NDkzNjE3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7177824b212788cd42963733ceb367075f83e0883539761468bfa4f7a727a5a3 |
| hovercard-subject-tag | issue:474072077 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/worker-loader/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b264b7bd28228e7072f164dffb45a6dcd43498c4749d0189f6d096045d6ebc19/NativeScript/worker-loader/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b264b7bd28228e7072f164dffb45a6dcd43498c4749d0189f6d096045d6ebc19/NativeScript/worker-loader/issues/42 |
| og:image:alt | Hi, I want to download my worker scripts from CDN, it means that __webpack_public_path__ = "https://amlogsextension-int.azureedge.net/" for e.g. This isn't possible at the moment sense root is hard... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raronen |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/worker-loader git https://github.com/NativeScript/worker-loader.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 99676258 |
| octolytics-dimension-repository_nwo | NativeScript/worker-loader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 99676258 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/worker-loader |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width