做用:Minify JavaScriptgulp
var gulp = require('gulp') var uglify = require('gulp-uglify') gulp.task('default',function () { gulp.src('app/js/*.js') .pipe(uglify()) .pipe(gulp.dest('app/minjs')) })