From c32a986af6448e488e43c5445e88392919352824 Mon Sep 17 00:00:00 2001 From: Marlos Dantas Date: Fri, 11 Dec 2015 09:34:43 -0300 Subject: [PATCH] Fix "sources" relative location in sourcemap file Signed-off-by: Marlos Dantas --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 360b3bd3..5d1d8720 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -148,7 +148,7 @@ gulp.task('minify', ['bundle-js'], function (cb) { // any issues when concatenating the file downstream (the file ends // with a comment). fs.writeFileSync(DIST + '/' + VIS_MIN_JS, result.code + '\n'); - fs.writeFileSync(DIST + '/' + VIS_MAP, result.map); + fs.writeFileSync(DIST + '/' + VIS_MAP, result.map.replace(/"\.\/dist\//g, '"')); cb(); });