mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02: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:
@@ -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')
|
||||
Reference in New Issue
Block a user