Skip to content

Commit

Permalink
Docs: Remove gulp-sourcemaps because it is built-in (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
brend8c authored Jun 22, 2021
1 parent 598f971 commit 818bd73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/recipes/browserify-transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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/' }));
});
```

0 comments on commit 818bd73

Please # to comment.