'use strict';

var gulp = require('gulp');
var sass = require('gulp-sass');
var csso = require('gulp-csso');
var nano = require('gulp-cssnano');

gulp.task('sass', function () {
  return gulp.src('./styles/sass/**/style.scss')
    .pipe(sass().on('error', sass.logError))
    .pipe(gulp.dest('./styles/css/'));
});

gulp.task('sass:watch', function () {
  gulp.watch('./styles/sass/**/*.scss', ['sass']);
});


gulp.task('optimize', function () {
    return gulp.src('./styles/sass/**/style.scss')
        .pipe(sass())
        .pipe(nano())
        .pipe(csso())
        .pipe(gulp.dest('./styles/css'));
});

@@ -137,16 +137,229 @@
 snano');
+%0Avar purify = require('gulp-purifycss');%0A%0Agulp.task('pure', function() %7B%0A  return gulp.src('./styles/css/style.css')%0A    .pipe(purify(%5B'./js/script.js', './index.html'%5D))%0A    .pipe(gulp.dest('./styles/css/'));%0A%7D);
 %0A%0Agulp.t
@@ -722,24 +722,64 @@
 ipe(sass())%0A
+        .pipe(purify(%5B'./index.html'%5D))%0A
         .pip

Set up css purifier