Thank you Adnan.
Joe Astuccio
11

Hey Joe. Awesome that you got around to including the DRY way of writing the copy tasks. Regarding the task for the images. You can add all images to a folder named assets in the src directory, and grab the contents of the folder with a wildcard. So the property on the paths variable could be:

srcImages: 'src/images/**/*.{png,gif,jpg}'

You’d then want to pipe them to an assets folder in the tmp or dist directory. Just like we did with the rest of the files.

Hope you had fun coding along with the tutorial. :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.