'use strict';

import config      from '../config';
import gulp        from 'gulp';
import browserSync from 'browser-sync';
import imagemin    from 'gulp-imagemin';
import pngquant    from 'imagemin-pngquant';
import {reload}    from 'browser-sync';

gulp.task('images', () => {
  return gulp.src(config.path.img.entry)
    .pipe(imagemin({
      progressive: true,
      optimizationLevel: 5,
      svgoPlugins: [{ removeViewBox: false }],
      use: [pngquant()]
    }))
    .pipe(gulp.dest(config.path.img.dist))
    .pipe(reload({ stream: true }));
});

@@ -203,16 +203,53 @@
 quant';%0A
+import gutil       from 'gulp-util';%0A
 import %7B
@@ -280,16 +280,16 @@
 -sync';%0A
-
 %0Agulp.ta
@@ -360,16 +360,51 @@
   .pipe(
+gutil.env.type === 'development' ? 
 imagemin
@@ -534,14 +534,29 @@
 ()%5D%0A
-
     %7D)
+ : gutil.noop()
 )%0A  

Fix images dev