// Import config
var config = require('./_config');
var clean = require('gulp-clean');
var critical = require('critical').stream;

// Html module
module.exports = function(gulp, livereload){
	gulp.task('html', function(){
		return gulp.src(config.html)
			.pipe(gulp.dest('dist'))
			.pipe(livereload());
	});
	gulp.task('html--deploy', function(){
		return gulp.src(config.html)
			.pipe(critical({base: 'dist/', inline: true, css: ['dist/css/app.css']}))
			.pipe(gulp.dest('dist'))
			.pipe(livereload());
	});
	gulp.task('assets', function(){
		return gulp.src(config.assets)
			.pipe(gulp.dest('dist/assets'))
			.pipe(livereload());
	});
	gulp.task('clean-html-tmp', function () {
		return gulp.src('dist/tmp-**', {read: false})
			.pipe(clean())
			.pipe(livereload());
	}); 
};

@@ -83,51 +83,8 @@
 n');
-%0Avar critical = require('critical').stream;
 %0A%0A//
@@ -334,85 +334,8 @@
 ml)%0A
-%09%09%09.pipe(critical(%7Bbase: 'dist/', inline: true, css: %5B'dist/css/app.css'%5D%7D))%0A
 %09%09%09.

remove critical css generation