import gulp from 'gulp'

import { fonts } from './fonts'
import { images } from './images'
import { scripts } from './webpack'
import { styles } from './styles'

export function watch() {
    gulp.watch('./resources/assets/sass/**/*.scss', styles);
    gulp.watch('./resources/js/**/*.js', scripts);
    gulp.watch('./resources/js/**/*.vue', scripts);
};

export const dev = gulp.series(fonts, images, scripts, styles);

export default dev;
import gulp from 'gulp'

import { fonts } from './fonts'
import { images } from './images'
import { scripts } from './webpack'
import { styles } from './styles'

function watch_task() {
    gulp.watch('./resources/assets/sass/**/*.scss', styles);
    gulp.watch('./resources/js/**/*.js', scripts);
    gulp.watch('./resources/js/**/*.vue', scripts);
};

export const dev = gulp.series(fonts, images, scripts, styles);
export const watch = gulp.series(dev, watch_task);

export default dev;
Make watch task compile everything first
Make watch task compile everything first
