Skip to content

Instantly share code, notes, and snippets.

@AhmadBaracat
Created February 12, 2016 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmadBaracat/badbf5c536ff9bd94d75 to your computer and use it in GitHub Desktop.
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
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