Fix opts not passed to buildJsPath

This commit is contained in:
Alasdair Smith 2018-03-15 12:15:00 +00:00
parent 4d79c68f41
commit 2e0804c728

View file

@ -152,7 +152,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
path = Path.join(jsPath, jsFile)
return "#{Settings.webpack.host}:#{Settings.webpack.port}/public#{path}"
else
return res.locals.buildJsPath(jsFile)
return res.locals.buildJsPath(jsFile, opts)
res.locals.buildCssPath = (cssFile, opts)->
path = Path.join("/stylesheets/", cssFile)