When I write the sourcemap of a file like this:
gulp.src(paths.scripts.js.input)
.pipe(sourcemaps.init())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.scripts.js.dir));
it writes in my .js //# sourceMappingURL=Input.js.map
each time the .map is generated.
Is there a way to rewrite the first sourceMappingUrl instead of adding one over and over?
EDIT:
I added the comment in all my .js files and disabled the "addComment" property in gulp-sourcemaps. It works but it's just a workaround.