Answer the question
In order to leave comments, you need to log in
How to make gulp-changed and gulp-sftp friends?
It is necessary to deploy only those files that have changed, but for some reason gulp-changed passes an empty list of files to the stream and nothing is deployed, writes "No files uploaded".
let changed = require('gulp-changed');
gulp.task('deploy:website', () => {
let sftp = require("gulp-sftp");
gulp.src('dist/**/*')
.pipe(changed('dist', {hasChanged: changed.compareSha1Digest}))
.pipe(sftp({
//...
}));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question