Tell me, please, some kind of plugin for grunt, which would collect one page from html files. like bam? Ideally, I would like to be able to simply write the paths to the files in the index.html page, and the plug-in, at startup, would replace these paths with the contents of these files, thus creating the HTML page that was compiled. I found grunt-html-build on my own - but it’s kind of tricky, I would like something simpler to simply write the paths to the files directly in the Index.html file, and don’t touch gruntfile.js (although grunt-html-build may is this just what you need, but am I not using it correctly?)

  • Want to give the command "face" for the grant, but do not want to change the file with the commands? However ... To build HTML, I have grunt-htmlmin running : github.com/gruntjs/grunt-contrib-htmlmin - user207618

1 answer 1

Alternatively, you can try grunt-bake or grunt-include-replace . The configuration for your goals will be minimal.

Example for grunt-bake:

<html> <head></head> <body> <!--(bake includes/container.html)--> <!--(bake includes/footer.html)--> </body> </html> 

Example for grunt-include-replace:

 <html> <head></head> <body> @@include('includes/container.html') @@include('includes/footer.html') </body> </html>