fixed mapping in web inspector

v1.18.x
Julian Lam 11 years ago
parent 7cdcb83a98
commit ce8bec5edb

@ -24,7 +24,7 @@ Minifier.js.minify = function (scripts, minify, callback) {
options.outSourceMap = 'nodebb.min.js.map';
options.mangle = false;
options.compress = false;
// options.prefix = __dirname.split(path.sep).length;
options.prefix = 1;
}
try {

@ -126,7 +126,7 @@ module.exports = function(Meta) {
}, function(err) {
// Translate into relative paths
Meta.js.scripts = Meta.js.scripts.map(function(script) {
return path.relative(path.resolve(__dirname, '../../'), script).replace(/\\/g, '/');
return path.relative(path.resolve(__dirname, '../..'), script).replace(/\\/g, '/');
});
Meta.js.prepared = true;

Loading…
Cancel
Save