Created
December 30, 2017 13:13
-
-
Save 4gray/cfa42eebdccb65432a216fac8a056698 to your computer and use it in GitHub Desktop.
Gulp: Sync folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
gulp.task('watch', function() { | |
return gulp.watch('./source/**/*', function(obj){ | |
if( obj.type === 'changed') { | |
gulp.src( obj.path, { "base": "./source/"}) | |
.pipe(gulp.dest('./dest')); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment