function watch() {

    livereload.listen()

    // Livereload reloads the whole page unless the reloaded file is *.css.
    // Hence we must have one watcher for .scss and one for .css.
    gulp.watch(PATHS.view.entry, view)
    gulp.watch(PATHS.styles.src, styles)
    gulp.watch(PATHS.styles.dest + '*.css', () => (gulp.src(PATHS.styles.dest + 'app.css').pipe(livereload())))

    gulp.watch(PATHS.images.src, images)
    gulp.watch(PATHS.fonts.src, fonts)
    gulp.watch(PATHS.scripts.src, scripts)
}
/**
 * Run all the build tasks and start the livereload server
 */
Run all the build tasks and start the livereload server
Run all the build tasks and start the livereload server
function watch() {
    livereload.listen()
    gulp.watch(PATHS.view.entry, view)
    gulp.watch(PATHS.styles.src, styles)
    gulp.watch(PATHS.styles.dest + '*.css', () => (gulp.src(PATHS.styles.dest + 'app.css').pipe(livereload())))
    gulp.watch(PATHS.images.src, images)
    gulp.watch(PATHS.fonts.src, fonts)
    gulp.watch(PATHS.scripts.src, scripts)
}
function watch ( ) { livereload . listen ( ) gulp . watch ( PATHS . view . entry , view ) gulp . watch ( PATHS . styles . src , styles ) gulp . watch ( PATHS . styles . dest + '*.css' , ( ) => ( gulp . src ( PATHS . styles . dest + 'app.css' ) . pipe ( livereload ( ) ) ) ) gulp . watch ( PATHS . images . src , images ) gulp . watch ( PATHS . fonts . src , fonts ) gulp . watch ( PATHS . scripts . src , scripts ) }
Run all the build tasks and start the livereload server
Run all the build tasks and start the livereload server
// Livereload reloads the whole page unless the reloaded file is *.css. // Hence we must have one watcher for .scss and one for .css.