function webpack(config, watching) {
  var mode = $.util.colors.blue('[DEVELOPMENT]');
  if (isProduction) {
    mode = $.util.colors.green('[PRODUCTION]');
  }
  if (watching) {
    if (!isBuildDebug) {
      config.plugins = config.plugins.concat(new BrowserSyncPlugin(conf.browserSync));
      config.watch = true;
    }
    config.debug = true;
  }
  $.util.log('Running webpack [CLIENT] in ' + mode + ' mode');

  gulp.src(path.join(conf.paths.client, 'favicon.ico'))
    .pipe(gulp.dest(path.join(conf.paths.build, 'client')));

  return gulp.src(conf.ts.client)
    .pipe($.webpack(config))
    .pipe(gulp.dest(path.join(conf.paths.build, 'client')));
}
/**
 * Run webpack to build files
 * @param {Object}  config    configuration for webpack
 * @param {Boolean} watching  whether or not to watch files
 */
Run webpack to build files
@param {Object}  config    configuration for webpack
@param {Boolean} watching  whether or not to watch files
Run webpack to build files @param { Object } config configuration for webpack @param { Boolean } watching whether or not to watch files
function webpack(config, watching) {
  var mode = $.util.colors.blue('[DEVELOPMENT]');
  if (isProduction) {
    mode = $.util.colors.green('[PRODUCTION]');
  }
  if (watching) {
    if (!isBuildDebug) {
      config.plugins = config.plugins.concat(new BrowserSyncPlugin(conf.browserSync));
      config.watch = true;
    }
    config.debug = true;
  }
  $.util.log('Running webpack [CLIENT] in ' + mode + ' mode');
  gulp.src(path.join(conf.paths.client, 'favicon.ico'))
    .pipe(gulp.dest(path.join(conf.paths.build, 'client')));
  return gulp.src(conf.ts.client)
    .pipe($.webpack(config))
    .pipe(gulp.dest(path.join(conf.paths.build, 'client')));
}
function webpack ( config , watching ) { var mode = $ . util . colors . blue ( '[DEVELOPMENT]' ) ; if ( isProduction ) { mode = $ . util . colors . green ( '[PRODUCTION]' ) ; } if ( watching ) { if ( ! isBuildDebug ) { config . plugins = config . plugins . concat ( new BrowserSyncPlugin ( conf . browserSync ) ) ; config . watch = true ; } config . debug = true ; } $ . util . log ( 'Running webpack [CLIENT] in ' + mode + ' mode' ) ; gulp . src ( path . join ( conf . paths . client , 'favicon.ico' ) ) . pipe ( gulp . dest ( path . join ( conf . paths . build , 'client' ) ) ) ; return gulp . src ( conf . ts . client ) . pipe ( $ . webpack ( config ) ) . pipe ( gulp . dest ( path . join ( conf . paths . build , 'client' ) ) ) ; }
Run webpack to build files
 @param {Object}  config    configuration for webpack
 @param {Boolean} watching  whether or not to watch files
Run webpack to build files @param { Object } config configuration for webpack @param { Boolean } watching whether or not to watch files