
// 获取gulp
const gulp = require('gulp');
const uglify = require('gulp-uglify');

gulp.task('build', function() {
  gulp.src('src/*.js') // 找到src文件夹下的所有js
    .pipe(uglify())
    .pipe(gulp.dest('dist/js')); // 压缩完成后的文件另存到dist/js/目录下 
});
