这是我目前所拥有的,它只是一个外壳,因为我不知道如何做到这一点。希望你能给我一些建议。
var concat = require('gulp-concat');
var gulp = require('gulp');
var rename = require('gulp-rename');
var replace = require('gulp-replace');
gulp.task('copy-move-index', function () {
return gulp.src('index/index.html')
});现在,我的index.html文件在索引文件夹中。我想要做的是有一个任务,复制它并将它移动到父文件夹。
谢谢
发布于 2016-05-05 04:51:41
就这么做
gulp.src(['your','source','files'])
.pipe(gulp.dest('output folder'))发布于 2016-05-05 05:01:24
您可以在您的gulp.dest中使用gulpfile.js
gulp.task('copy', function () {
return gulp.src('index/index.html')
.pipe(gulp.dest('./'));
})https://stackoverflow.com/questions/37042566
复制相似问题