From d0ed0a6d5cf1e1c2cc7ef66d224a68bdf381462b Mon Sep 17 00:00:00 2001 From: mrmrs Date: Thu, 13 Mar 2014 01:28:44 -0700 Subject: [PATCH] Removes uglify and js refs. --- gulpfile.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2c5a18b..77255ca 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,14 +23,6 @@ gulp.task('minify-css', function(){ }); -// Task to minify all js files in the js directory - -gulp.task('minify-js', function() { - gulp.src('./js/*.js') - .pipe(uglify()) - .pipe(gulp.dest('./js/')); -}); - // Task to optmize and minify images @@ -82,7 +74,6 @@ gulp.task('pre-process', function(){ • Process sass and lints outputted css • Outputted css is run through autoprefixer - • Runs jshint on all js files in ./js/ • Sends updates to any files in directory to browser for automatic reloading @@ -91,7 +82,7 @@ gulp.task('pre-process', function(){ gulp.task('default', function(){ gulp.run('pre-process', 'csslint'); server.listen(35729, function (err) { - gulp.watch(['./sass/*.scss', './js/*.js'], function(event) { + gulp.watch(['./sass/*.scss'], function(event) { gulp.run('pre-process', 'csslint'); }); }); @@ -99,6 +90,6 @@ gulp.task('default', function(){ gulp.task('production', function(){ - gulp.run('minify-css', 'minify-js', 'minify-img', 'minify-svg'); + gulp.run('minify-css', 'minify-img', 'minify-svg'); });