Another workaround for Windows paths.

pull/987/head
Chad Weider 2012-09-09 14:33:16 -07:00
parent 3b5ea88bf5
commit a97b83babc
1 changed files with 1 additions and 0 deletions

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?)
}
}