http://computertriksno1.blogspot.in/

Gulp: Copying Fonts to Dist

16 Apr 2017 0 comments


Since font files are already optimized, there's nothing more we need to do. All we have to do is to copy the fonts into dist.

We can copy files with Gulp simply by specifying the gulp.src and gulp.dest without any plugins.


gulp.task('fonts', function() {
  return gulp.src('app/fonts/**/*')
  .pipe(gulp.dest('dist/fonts'))
})

Now Gulp will copy 'fonts' from 'app' to 'dist' whenever you run gulp fonts.


We have 6 different tasks in the gulpfile now, and each of them has to be called individually with the command line, which is kinda cumbersome so we want to tie everything together into one command.

Before we do that though, let's look at how to clean up generated files automatically.
Click here for For next Step:  "Cleaning up generated files automatically"

Table of Contents:  "Table of Contents to learn"
Share this article :

Post a Comment

 
Support : GDDon | Creating Website | Gddon |
Copyright © 2013. Computer Tricks and Tips for System - All Rights Reserved
Template Created by Creating Website Modify by GDDon.Com
Proudly powered by Blogger