Procházet zdrojové kódy

Merge pull request #420 from sharelatex/as-fix-webpack-url

Fix webpack config so that it's more consistent
Alasdair Smith před 8 roky
rodič
revize
dd57c394fe

+ 1 - 1
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -150,7 +150,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
 		res.locals.buildWebpackPath = (jsFile, opts = {}) ->
 		res.locals.buildWebpackPath = (jsFile, opts = {}) ->
 			if Settings.webpack? and !Settings.useMinifiedJs
 			if Settings.webpack? and !Settings.useMinifiedJs
 				path = Path.join(jsPath, jsFile)
 				path = Path.join(jsPath, jsFile)
-				return "#{Settings.webpack.host}:#{Settings.webpack.port}/public#{path}"
+				return "#{Settings.webpack.url}/public#{path}"
 			else
 			else
 				return res.locals.buildJsPath(jsFile, opts)
 				return res.locals.buildJsPath(jsFile, opts)