const gulp = require('gulp');
const $ = require('gulp-load-plugins')();

const GulpRegistry = require('undertaker-forward-reference');

const browserSync = require('browser-sync').create();

require('rootpath')();

module.exports = function() {
  gulp.registry(new GulpRegistry());
  $.loadAllTasks({
    browserSync,
  });

  gulp.task('default', gulp.series('build'));
};

const gulp = require('gulp');
const $ = require('gulp-load-plugins')();

const GulpRegistry = require('undertaker-forward-reference');

const browserSync = require('browser-sync').create();

module.exports = function() {
  gulp.registry(new GulpRegistry());
  $.loadAllTasks({
    browserSync,
  });

  gulp.task('default', gulp.series('build'));
};

Remove unnecessary require