text: import gulp from 'gulp';
  import gulpIf from 'gulp-if';
  import image from 'gulp-image';
  import path from 'path';
  import yargs from 'yargs';
  import { paths } from '../../config';
  
  var flag = yargs.argv;
  
  export default gulp.task('files', () => {
    return gulp.src(path.resolve(paths.src, paths.files.src))
      .pipe(gulpIf(flag.prod, image({
        pngquant: true,
        optipng: false,
        zopflipng: false,
        jpegRecompress: false,
        jpegoptim: true,
        svgo: true,
        concurrent: 10
      })))
      .pipe(gulp.dest(path.resolve(paths.dist, paths.files.dist)));
  });
  