Created
February 12, 2016 09:31
-
-
Save AhmadBaracat/badbf5c536ff9bd94d75 to your computer and use it in GitHub Desktop.
Ionic 2 (v2) watching for file change in the app folder and move the files to www/build in order for liveReload to kick in
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('moveHtml', function() { | |
console.log('Moving html...'); | |
gulp.src('app/**/*.html') | |
.pipe(gulp.dest('www/build')); | |
}); | |
gulp.task('watch', function(){ | |
gulp.watch('app/**/*.html', ['moveHtml']); | |
// Other watchers | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment