采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
var gulp = require('gulp'), less = require('gulp-less'), cssmin = require('gulp-minify-css'), //jshint = require('gulp-jshint'), path = require('path'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), rename = require('gulp-rename') //var basePath = '/data/devhome/' + path.basename(path.dirname(process.cwd())) + '/aopeng_dev/php/webroot/static/moco/v1.0'; var basePath = 'v1.0' gulp.task('less', function(){ console.log(basePath+'/less/moco.less') gulp.src(basePath+'/less/moco.less') .pipe(less({ compress: true })) //.pipe(minifyCss()) .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest(basePath+'/dist/css')); }); gulp.task('fonts', function(){ gulp.src(basePath+'/fonts/*') .pipe(gulp.dest(basePath+'/dist/fonts')); }); gulp.task('imv2', function(){ gulp.src(basePath+'/imv2/fonts/*') .pipe(gulp.dest(basePath+'/dist/imv2fonts')); }); gulp.task('icomoon', function(){ gulp.src(basePath+'/icomoon/fonts/*') .pipe(gulp.dest(basePath+'/dist/icomoon')); }); gulp.task('images', function(){ gulp.src(basePath+'/images/*') .pipe(gulp.dest(basePath+'/dist/images')); }); // gulp.task('hint', function() { // gulp.src(version+'/js/*.js') // .pipe(jshint()) // .pipe(jshint.reporter('default')); // }); gulp.task('js', function() { console.log(basePath+'/js/*.js') gulp.src(basePath+'/js/*.js') .pipe(concat('moco.min.js')) .pipe(uglify()) .pipe(gulp.dest(basePath+'/dist/js')) }); gulp.task('captcha', function() { gulp.src('captcha/v0.1/src/*.js') .pipe(rename({ suffix: '.min' })) .pipe(uglify()) .pipe(gulp.dest('captcha/v0.1/dist')) gulp.src('captcha/v0.1/src/*.css') .pipe(cssmin()) .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest('captcha/v0.1/dist')); }); gulp.task('default', ['less','fonts','imv2','icomoon','js','images']);
= ()= ()= ()= ()= ()= ()= () basePath = .((){ .(basePath+) .(basePath+) .(({ : })) .(({ : })) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).(() { .(basePath+) .(basePath+) .(()) .(()) .(.(basePath+)) }).(() { .() .(({ : })) .(()) .(.()) .() .(()) .(({ : })) .(.())}).([])
= ()= ()= ()= ()= ()= ()= () basePath = .((){ .(basePath+) .(basePath+) .(({ : })) .(({ : })) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).((){ .(basePath+) .(.(basePath+))}).(() { .(basePath+) .(basePath+) .(()) .(()) .(.(basePath+)) }).(() { .() .(({ : })) .(()) .(.()) .() .(()) .(({ : })) .(.())}).([])
4年同步微信官方迭代,累计20000+人学习, 比微信官方更火爆!
了解课程