diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-04-09 00:49:18 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-04-09 00:49:18 -0500 |
commit | 596d5fa21a9563f9648ee33ca0f1e254114c8c0b (patch) | |
tree | 9427505e4411e252ec570a98c60929396505c2c1 | |
parent | 109f61226f019bd49a53ee48c73d09ffef4c7063 (diff) | |
download | gitlab-ce-revert-e4b2c3b0.tar.gz |
Revert "Merge branch 'fix-ide-web-worker-relative-url' into 'master'"revert-e4b2c3b0
This reverts merge request !26015
-rw-r--r-- | app/assets/javascripts/lib/utils/webpack.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/webpack.js b/app/assets/javascripts/lib/utils/webpack.js index a4dad6f1615..37b5409a51d 100644 --- a/app/assets/javascripts/lib/utils/webpack.js +++ b/app/assets/javascripts/lib/utils/webpack.js @@ -6,5 +6,11 @@ export function resetServiceWorkersPublicPath() { // see: https://webpack.js.org/guides/public-path/ const relativeRootPath = (gon && gon.relative_url_root) || ''; const webpackAssetPath = `${relativeRootPath}/assets/webpack/`; + __webpack_public_path__ = webpackAssetPath; // eslint-disable-line camelcase + + // monaco-editor-webpack-plugin currently (incorrectly) references the + // public path as a property of `window`. Once this is fixed upstream we + // can remove this line + // see: https://github.com/Microsoft/monaco-editor-webpack-plugin/pull/63 window.__webpack_public_path__ = webpackAssetPath; // eslint-disable-line } |