Skip to content Skip to sidebar Skip to footer

What's The Most Efficient Way To Read, Rebuild, And Replace A Block Of Content In A File Using Gulp?

I'm creating a system that can read through any file (php, jsp, html, etc), locate block tags, and do a replacement based on the information in the block tag. Code I would write in

Solution 1:

Because Gulp uses a pipe system and all the files become streams, you can write your own pipe/plug-in to process files in very specific ways. Check out Gulp Writing Plugins, section Modifying file content.

Notable Mention

gulp-replace might actually do the trick

Post a Comment for "What's The Most Efficient Way To Read, Rebuild, And Replace A Block Of Content In A File Using Gulp?"