vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 680 forks source link

Allow for manually specifying the files that the `clean` task will delete #451

Closed elivz closed 7 years ago

elivz commented 7 years ago

Here is one approach to fixing Issue #303. I just added the ability to override the glob pattern that del matches against in the clean task. I had to also switch from fs to node-fs-extra for copying the production files from their temporary build location, since fs.renameSync requires the destination folder to not already exist.

I'm sure there are any number of other ways of handling this that would give similar results....

greypants commented 7 years ago

Thanks! I'll merge when I get a chance take a closer look sometime this week.