/*
  gulpfile.js
  ===========
  Rather than manage one giant configuration file responsible
  for creating multiple tasks, each task has been broken out into
  its own file in gulp/tasks. Any files in that directory get
  automatically required below.
  To add a new task, simply add a new task file that directory.
  gulp/tasks/default.js specifies the default set of tasks to run
  when you run `gulp`.
*/

var requireDir = require('require-dir');

if (process.env.NODE_ENV !== 'production') {
  // Require all tasks in gulp/tasks, including subfolders
  requireDir('./gulp/tasks', { recurse: true });
} else {
  // If in production only require tasks necessary for producion build
  require('./gulp/tasks/config.js');
  requireDir('./gulp/tasks/production', { recurse: true });
}

/*
  gulpfile.js
  ===========
  Rather than manage one giant configuration file responsible
  for creating multiple tasks, each task has been broken out into
  its own file in gulp/tasks. Any files in that directory get
  automatically required below.
  To add a new task, simply add a new task file that directory.
  gulp/tasks/default.js specifies the default set of tasks to run
  when you run `gulp`.
*/

var requireDir = require('require-dir');

if (process.env.NODE_ENV !== 'production') {
  // Require all tasks in gulp/tasks, including subfolders
  requireDir('./gulp/tasks', { recurse: true });
} else {
  // If in production only require tasks necessary for producion build
  requireDir('./gulp/tasks/production', { recurse: true });
}

Fix gulp config require in production
Fix gulp config require in production
