Closed kingkool68 closed 8 years ago
Hi, please take a look a this https://github.com/gulpjs/gulp/blob/master/docs/recipes/running-task-steps-per-folder.md
Ah thanks for that. I managed to figure it out using the gul-foreach plugin
My gulpfile looks like this now. https://gist.github.com/kingkool68/db0b153bddb08e2c1107
I have a pretty simple Gulp task to concat CSS files in a directory. The problem is I'm not combining them all in to one file but instead processing each CSS file in a directory and saving a new minified version of that file.
I want to be able to reference the current file being processed via
gulp.src('css/*.css')
Here is my gulpfile.js. How can I define thecurrentFileName
variable instead of hardcoding a string?