gulp 学习笔记2 named tasks
var gulp = require('gulp') var uglify = require('gulp-uglify') var cleancss = require('gulp-clean-css') gulp.task('scripts',function () { gulp.src('app/js/*.js') .pipe(uglify()) .pipe(gulp.dest('build/js')) }) gulp.task('styles',function () { console.log('run minify css') }) gulp.task('default',['scripts','styles'])