F
F
Finom2015-12-17 17:08:51
Node.js
Finom, 2015-12-17 17:08:51

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({
 				 //...
    }));
});

CHADNT?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question