Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Getting Started with Gulp ??? Second Edition

You're reading from   Getting Started with Gulp ??? Second Edition Automating web development workflows

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781787283732
Length 132 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Maynard Maynard
Author Profile Icon Maynard
Maynard
Arrow right icon
View More author details
Toc

Completed gulpfile


Congratulations! You have written your very first gulpfile. However, this is only scratching the surface. We have a lot more to add in the coming chapters, including using Node.js modules for advanced tasks, as well as some great tips and improvements. Before we move on, let's take a moment to review the completed file that we created in this chapter. This is a great opportunity to compare your file with the code given and ensure that your code matches with what we have written so far. This may save your debugging time later!

The completed gulpfile should look as follows:

    // Modules & Plugins
    var gulp = require('gulp');
    var concat = require('gulp-concat');
    var myth = require('gulp-myth');
    var uglify = require('gulp-uglify');
    var jshint = require('gulp-jshint');
    var imagemin = require('gulp-imagemin');

    // Styles Task
    gulp.task('styles', function () {
        return gulp.src('app/css/*.css')
            .pipe(concat('all.css'))
   ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images