Has anyone knew any "gulp" plugin which compiles(bundles) different files with something .html extension into one file? Or which closer to what I am trying to achieve?
ex.
build |- html |- header.html |- footer.html |- main-section.html |- index.html dist |- index.html(result)
on index.html file on build
... some meta tags
...
somewhere inside body tag
/* I want something like */
require('build/html/header.html);
require('build/html/main-section.html);
require('build/html/footer.html);
</pre>
And the output would be the html inside of those files. Where also each of those files(header, ...) have something require also.
P.S. Can someone list of them with links, please? Thanks alot.
A better one might be gulp-inject-multiple-files.
In gulp file:
In your index.html file:
If this is for email templates, may I also recommend Zurb/Inky. They are quite easy to use and they don't break very often in outlook