gulpfile.js
function watch(done) {
  var mainWatcher = gulp.watch([
    'src/**/*.js',
    'modules/**/*.js',
    'test/spec/**/*.js',
    '!test/spec/loaders/**/*.js'
  ]);
  var loaderWatcher = gulp.watch([
    'loaders/**/*.js',
    'test/spec/loaders/**/*.js'
  ]);

  connect.server({
    https: argv.https,
    port: port,
    root: './',
    livereload: true
  });

  mainWatcher.on('all', gulp.series(clean, gulp.parallel(lint, 'build-bundle-dev', test)));
  loaderWatcher.on('all', gulp.series(lint));
  done();
}
function watch(done) {
  var mainWatcher = gulp.watch([
    'src/**/*.js',
    'modules/**/*.js',
    'test/spec/**/*.js',
    '!test/spec/loaders/**/*.js'
  ]);
  var loaderWatcher = gulp.watch([
    'loaders/**/*.js',
    'test/spec/loaders/**/*.js'
  ]);

  connect.server({
    https: argv.https,
    port: port,
    root: './',
    livereload: true
  });

  mainWatcher.on('all', gulp.series(clean, gulp.parallel(lint, 'build-bundle-dev', test)));
  loaderWatcher.on('all', gulp.series(lint));
  done();
}
function watch ( done ) { var mainWatcher = gulp . watch ( [ 'src/**/*.js' , 'modules/**/*.js' , 'test/spec/**/*.js' , '!test/spec/loaders/**/*.js' ] ) ; var loaderWatcher = gulp . watch ( [ 'loaders/**/*.js' , 'test/spec/loaders/**/*.js' ] ) ; connect . server ( { https : argv . https , port : port , root : './' , livereload : true } ) ; mainWatcher . on ( 'all' , gulp . series ( clean , gulp . parallel ( lint , 'build-bundle-dev' , test ) ) ) ; loaderWatcher . on ( 'all' , gulp . series ( lint ) ) ; done ( ) ; }
Watch Task with Live Reload
Watch Task with Live Reload