Replace id in HTML
This is plugin for nmp-package "Post-Compression".
He`s searching and replaces long attribute value "id" on short value, in the HTML code.
An example of using:
var replaceIdInHTML = ; gulp ;
Where:
- shortNames - an object of type JSON with rules replace the long words to short words.
An example of the JSON object "shortNames":
"id_in_html": // the name of the group names "someIdA": "a" // long name: short name "someIdB": "b"
An example of HTML code before:
An example of HTML code after: