robrich / gulp-if

Conditionally run a task
MIT License
655 stars 29 forks source link

what's the type of file argument ? #78

Closed yuuk closed 6 years ago

yuuk commented 6 years ago

what's the type of file argument ? how can i get the filename?

robrich commented 6 years ago

The file argument is a vinyl-fs file object. Filename is file.path. See https://github.com/gulpjs/vinyl-fs and https://github.com/gulpjs/vinyl

yuuk commented 6 years ago

Ok, thx~