From 818bd73e5da1ad69f43eef84214c98d6392a73e4 Mon Sep 17 00:00:00 2001 From: Artem Guskov <61526280+brendan8c@users.noreply.github.com> Date: Tue, 22 Jun 2021 21:18:17 +0300 Subject: [PATCH] Docs: Remove gulp-sourcemaps because it is built-in (#2592) --- docs/recipes/browserify-transforms.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/recipes/browserify-transforms.md b/docs/recipes/browserify-transforms.md index 47a0d4d54..58c74bc33 100644 --- a/docs/recipes/browserify-transforms.md +++ b/docs/recipes/browserify-transforms.md @@ -15,7 +15,6 @@ var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var log = require('gulplog'); var uglify = require('gulp-uglify'); -var sourcemaps = require('gulp-sourcemaps'); var reactify = require('reactify'); gulp.task('javascript', function () { @@ -28,13 +27,11 @@ gulp.task('javascript', function () { }); return b.bundle() - .pipe(source('app.js')) + .pipe(source('app.js', { sourcemaps: true })) .pipe(buffer()) - .pipe(sourcemaps.init({loadMaps: true})) // Add transformation tasks to the pipeline here. .pipe(uglify()) .on('error', log.error) - .pipe(sourcemaps.write('./')) - .pipe(gulp.dest('./dist/js/')); + .pipe(gulp.dest('./dist/js/', { sourcemaps: '../sourcemaps/' })); }); ```