text: var gulp = require('gulp');
  var plumber = require('gulp-plumber');
  var uglify = require('gulp-uglify');
  var sass = require('gulp-sass');
  var rename = require('gulp-rename');
  var autoprefixer = require('gulp-autoprefixer');
  
  gulp.task('scripts', function() {
      return gulp.src('js/scripts.js')
          .pipe(plumber(plumber({
              errorHandler: function (err) {
                  console.log(err);
                  this.emit('end');
              }
          })))
          .pipe(uglify({
              preserveComments: 'license'
          }))
          .pipe(rename({extname: '.min.js'}))
          .pipe(gulp.dest('js'));
  });
  
  gulp.task('styles', function() {
      return gulp.src('scss/styles.scss')
          .pipe(plumber(plumber({
              errorHandler: function (err) {
                  console.log(err);
                  this.emit('end');
              }
          })))
          .pipe(sass({outputStyle: 'compressed'}))
          .pipe(autoprefixer())
          .pipe(gulp.dest('css'));
  });
  
  gulp.task('watch', ['scripts', 'styles'], function() {
      gulp.watch('js/*.js', ['scripts']);
      gulp.watch('scss/*.scss', ['styles']);
  });
  
  