标签:
gulp.task(‘jsx‘, function () { var src=‘app/script/**/*.jsx‘; // src=‘app/script/components/selloff/*.jsx‘; return gulp.src([src]) .pipe(react()) // .pipe(gulp.dest(‘jsx‘)); //根目录的jsx目录 .pipe(gulp.dest(function(file){return file.base;})); });
标签:
原文地址:http://www.cnblogs.com/zyip/p/4707204.html