Reflection
To wrap up, take a moment to look at a finished gulpfile
and reflect on the information that we just covered. This is the completed gulpfile
that we will be creating from scratch in the next chapter, so don't worry if you still feel lost. This is just an opportunity to recognize the patterns and syntaxes that we have been studying so far.
In the next chapter, we will begin creating this file step by step:
// Load Node Modules/Plugins var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); // Process Styles gulp.task('styles', function() { return gulp.src('css/*.css') .pipe(concat('all.css')) .pipe(gulp.dest('dist/')); }); // Process Scripts gulp.task('scripts', function() { return gulp.src('js/*.js') .pipe(concat('all.js')) .pipe(uglify()) .pipe(gulp.dest('dist/')); }); // Watch Files For Changes gulp.task('watch...