| ... | @@ -6,5 +6,11 @@ export function resetServiceWorkersPublicPath() { |
... | @@ -6,5 +6,11 @@ export function resetServiceWorkersPublicPath() { |
|
|
// see: https://webpack.js.org/guides/public-path/
|
|
// see: https://webpack.js.org/guides/public-path/
|
|
|
const relativeRootPath = (gon && gon.relative_url_root) || '';
|
|
const relativeRootPath = (gon && gon.relative_url_root) || '';
|
|
|
const webpackAssetPath = `${relativeRootPath}/assets/webpack/`;
|
|
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
|
|
window.__webpack_public_path__ = webpackAssetPath; // eslint-disable-line
|
|
|
} |
|
} |