Another workaround for Windows paths.
This commit is contained in:
parent
3b5ea88bf5
commit
a97b83babc
|
@ -144,6 +144,7 @@ function minify(req, res, next)
|
||||||
if (plugin) {
|
if (plugin) {
|
||||||
var pluginPath = plugin.package.realPath;
|
var pluginPath = plugin.package.realPath;
|
||||||
filename = path.relative(ROOT_DIR, pluginPath + '/static/' + resourcePath);
|
filename = path.relative(ROOT_DIR, pluginPath + '/static/' + resourcePath);
|
||||||
|
filename = filename.replace(/\\/g, '/'); // Windows (safe generally?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue