J
J
Javarast Skriptovich2019-05-23 16:40:50
gulp.js
Javarast Skriptovich, 2019-05-23 16:40:50

Apply plugins depending on file extension in one .pipe chain?

It is necessary that, depending on the file extension, this or that function is applied, because. various files come into the input

Src('Source/Templates/*/**/index.*')
   .pipe( Replace(...) )
   .pipe( IncludeFiles(...) )
   .pipe( /*Вот тут вот где-нить ext-контроллер впихнуть*/ )
   .pipe( RebuildFilePath(...) )
   .pipe( Dest('Build') )

What are the proven working options? (not in the style of "some kind of plugin, perhaps something can")
Wubpuk does not offer)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question