As a beginner in sourcemapping, I have been tasked with saving the sourcemap in an external file. However, up to this point, I have only been able to concatenate the sourcemap to the minified .js file. What changes should I make to my approach? Am I missing something essential here?
return gulp.src(sourceFiles)
.pipe(sourcemaps.init())
.pipe(concat('minifiedJS.min.js'))
.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest(destinationFolder))