Another workaround for Windows paths.

This commit is contained in:
Chad Weider 2012-09-09 14:33:16 -07:00
parent 3b5ea88bf5
commit a97b83babc

View file

@ -144,6 +144,7 @@ function minify(req, res, next)
if (plugin) {
var pluginPath = plugin.package.realPath;
filename = path.relative(ROOT_DIR, pluginPath + '/static/' + resourcePath);
filename = filename.replace(/\\/g, '/'); // Windows (safe generally?)
}
}