Hello! Such situation: I use in their projects gulp (standard tools: jade, scssm, concat, browser-sync, minify', etc.).
The problem: need a plugin or something, who runs would be all the folders in a particular directory, and only processed html files, and they sought out certain specified pieces of code and changed them at some other specified piece of code and overwrite the html files with a different piece of code (or lay them out separately). I suspect that this plugin should be under gulp, but I can't seem to deal with the abundance of plugins, and often a modest description thereof.
And the second question: I understand that it is possible to implement such a stupid parsing through the nodejs console? Indicating the pieces of code to replace in the console. Or am I wrong and this is wrong? But it is necessary to write your own module for Node, as I understand it.
To summarize: we need to go through all these folders, to find each .html find specified pieces of code (for example:
<script src="old.js></script> <a href=http://oldlink.com"></a></code></pre>) and replace them with other code ( <pre><code><script src="NEW.js></script> <a href="http://NEWlink.com""></a>
In General, need advice, and I'm quite confused.
PS I Use Sublime/Atom/Brackets, maybe there are some plugins for them?
Thank you for your attention.
P. S. S. I Forgot to tell you that I'm just learning to write your "configs" to gulp, about how and what should be, I understand, but in no way a specialist in this matter are not.