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'])

 

posted @ 2018-02-12 15:33  ybleeho  阅读(205)  评论(0编辑  收藏  举报