text: 'use strict';
  
  // Original developer: Maik Ellerbrock
  
  const gulp = require('gulp');
  const sass = require('gulp-sass');
  
  const sassFiles = process.env.SASS || '**/*.+(sass|scss)';
  const config = {
    'sass': '/site/sass/' + sassFiles,
    'css': '/site/css'
  };
  
  if( process.env.GULP_DEBUG ) {
    console.log(`SASS: ${config.sass}`)
    console.log(`CSS: ${config.css}`)
  }
  
  gulp.task('default', [ 'sass', 'sass:watch' ]);
  
  gulp.task('sass', function () {
    return gulp.src(config.sass)
      .pipe(sass().on('error', sass.logError))
      .pipe(gulp.dest(config.css));
  });
  
  gulp.task('sass:watch', function () {
    gulp.watch(config.sass, ['sass']);
  });
  