mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 12:50:57 +00:00
Merge pull request #4243 from overleaf/as-fix-webpack-public-path
Configure webpack public path for gallery search bundle, fixing translations failing to load GitOrigin-RevId: e785ccac2bbba7ff9d929730c6ea84249f6db109
This commit is contained in:
parent
bb55fc2e32
commit
94641f737c
3 changed files with 7 additions and 5 deletions
|
@ -16,6 +16,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
|
||||
import './utils/webpack-public-path'
|
||||
import './libraries'
|
||||
import './infrastructure/error-reporter'
|
||||
import './modules/recursionHelper'
|
||||
|
|
|
@ -18,8 +18,3 @@ import 'isomorphic-unfetch'
|
|||
|
||||
// Rewrite meta elements
|
||||
import './utils/meta'
|
||||
|
||||
// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
|
||||
// See: https://webpack.js.org/guides/public-path/#on-the-fly
|
||||
// eslint-disable-next-line no-undef, camelcase
|
||||
__webpack_public_path__ = window.baseAssetPath
|
||||
|
|
6
services/web/frontend/js/utils/webpack-public-path.js
Normal file
6
services/web/frontend/js/utils/webpack-public-path.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import getMeta from './meta'
|
||||
|
||||
// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
|
||||
// See: https://webpack.js.org/guides/public-path/#on-the-fly
|
||||
// eslint-disable-next-line no-undef, camelcase
|
||||
__webpack_public_path__ = getMeta('ol-baseAssetPath')
|
Loading…
Reference in a new issue