How to generate gulp-rev when processing files circularly

  node.js, question

How to generate gulp-rev when processing files circularly, so only the corresponding relation of the last js generated is written in

gulp.task('browserify',['cleanjs'],function(){
 //modules will be imported according to main,module1,module2.
 return gulp.src('develop/js/pages/*.js',function(err,files) {
 //console.log(err);
 files.map(function (entry) {
 //console.log(entry.split('pages/')[1]);
 var fileName = entry.split('pages/')[1];  //Intercept the file name of the full path
 browserify({
 entries: [entry],
 debug: true,
 })
 .transform("babelify", {presets: ["es2015"]})
 .bundle()
 .on('error', function(err) {
 console.log(err.message);
 this.emit('end');
 })
 .pipe(source(fileName))
 . pipe(buffer()) // cache file contents
 //.pipe(uglify())
 .pipe(jshint())
 .pipe(gulpif(prodoct,uglify()))
 .pipe(rev())
 . pipe (sourcemap.init ({loadmaps: true})//load map from browserify file
 . pipe (sourcemaps.write ('.')//write to. map file
 .pipe(gulp.dest('./static/js/pages'))
 . pipe (rev.manifest ('rev-js.json',' merge: true})//-generates a rev-manifest.json
 .pipe(gulp.dest('./rev'));
 });
 })
 })
.pipe(rev.manifest({ merge: true }))