Adnan Rahić
Aug 29, 2017 · 1 min read

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. :)

)
    Adnan Rahić

    Written by

    Dev/Avocado at Sematext.com. Co-Founder at Bookvar.co. Author of "Serverless JavaScript by Example"-bit.ly/sls-js. Ex-Local leader at freeCodeCamp Sarajevo.

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade