Gulp: How to set dest folder relative to processed file (when using wildcards)?
问题 Under my assets/ folder, I have numerous subfolders, each containing an arbitrary number of images, like so: assets/article1/ assets/article2/ I'm trying to write a gulp task to locate all .jpg images within and generate their thumbnail versions, to be saved in a thumbs/ subfolder within the folder where each file resides: assets/article1/ # original jpg images assets/article1/thumbs/ # thumbnail versions of above.. assets/article2/ assets/article2/thumbs/ I've been trying various approaches