var concat = require('gulp-concat');
var minifyCSS = require('gulp-minify-css');
var SCSSfiles = ['assets/sass/**/*.scss', '!assets/sass/reset.scss', '!assets/sass/all.scss'];
var resetCSS = ['assets/sass/reset.scss'];
var allCSS = ['assets/sass/all.scss'];
var resetFirst = resetCSS.concat(allCSS);
var concatFiles = resetFirst.concat(SCSSfiles);
gulp.task('sass', function() {
return gulp.src(concatFiles)
.pipe(concat('styles.min.scss'))
.pipe(sass().on('error', sass.logError))
.pipe(minifyCSS())
.pipe(gulp.dest('assets/css'));
});