mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
Fix webpack config so that it's more consistent
This commit is contained in:
@@ -150,7 +150,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
||||
res.locals.buildWebpackPath = (jsFile, opts = {}) ->
|
||||
if Settings.webpack? and !Settings.useMinifiedJs
|
||||
path = Path.join(jsPath, jsFile)
|
||||
return "#{Settings.webpack.host}:#{Settings.webpack.port}/public#{path}"
|
||||
return "#{Settings.webpack.url}/public#{path}"
|
||||
else
|
||||
return res.locals.buildJsPath(jsFile, opts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user