Used to remove duplicate references in html.
Usage
var gulp = removeDuplicateReference = ; /** * Use "strict" compare mode, which means all the tag attributes * should be the same */ gulp; gulp; /** * Use "kind" compare mode, which means the referring file path * should be the same */ gulp;
Options
compareMethod
Specifies how to judge if two reference is the same.
strict
(default): Compares references with all the declared html attributes. Treat as different reference if at least one attribute is different, which means no reference will be removed.
kind
: Compares references with resource path only.
Note
Supported reference
link
, script
License
MIT