This plugin is intended to work with PostHTML. It will allow you to keep HTML head elements - title, script, link, base and meta - in a separate JSON file:
A custom tag, which signifies where the HTML head elements should be inserted during the build process, needs to be placed in the document head:
<!-- Add to homescreen for Chrome on Android -->
var posthtml = ;var gulp = ;var jsonPath = '/data/posthtml-head-elements.json';gulp;
Note that the HTML head elements are inserted into the document in the spatial order they are laid out - from top to bottom
It is possible to mix the head elements, but the JSON syntax requires a unique key. Therefore, if you are using more than one head element, place an underscore immediately afterwards.
An example of a JSON file with multiple head elements: