|
|
@@ -41,6 +41,7 @@ pathList = [
|
|
|
"#{jsPath}ide.js"
|
|
|
"#{jsPath}main.js"
|
|
|
"#{jsPath}libraries.js"
|
|
|
+ "#{jsPath}es/richText.js"
|
|
|
"/stylesheets/style.css"
|
|
|
"/stylesheets/ol-style.css"
|
|
|
]
|
|
|
@@ -146,6 +147,13 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|
|
path = path + "?" + qs
|
|
|
return path
|
|
|
|
|
|
+ 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}"
|
|
|
+ else
|
|
|
+ return res.locals.buildJsPath(jsFile)
|
|
|
+
|
|
|
res.locals.buildCssPath = (cssFile, opts)->
|
|
|
path = Path.join("/stylesheets/", cssFile)
|
|
|
if opts?.hashedPath && hashedFiles[path]?
|