mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #420 from sharelatex/as-fix-webpack-url
Fix webpack config so that it's more consistent
This commit is contained in:
commit
dd57c394fe
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue