I would like my gulpfile.js task watch to run when an html file in the path is updated, not just javascript files. it seems like even though my base directory does not specify *.js, that it what it assuming.
The relevant part of my gulpfile.js is below.
gulp.task('watch', function () {
var baseDir = format('./%s',tenantName);
var combinedArgs = merge(watchify.args, { debug: true });
var b = browserify(baseDir,combinedArgs);
var watcher = watchify(b);
bundle(watcher);
watcher.on('update', function () {
bundle(watcher);
});
watcher.on('log', gutil.log);
browserSync.init({
server: './dist',
logFileChanges: false
});
});