Yes it is possible. For future reference, you should use the gulp registry of plugins . A quick search for "comments" found this:
var gulp = require('gulp'); var strip = require('gulp-strip-comments'); gulp.task('default', function () { return gulp.src('template.js') .pipe(strip()) .pipe(gulp.dest('dist')); });
https://github.com/RnbWd/gulp-strip-comments
source share