]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: improve docs of the "getUmdEntry" build utility 11618/head
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 9 Jan 2019 21:06:43 +0000 (22:06 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 9 Jan 2019 21:06:43 +0000 (22:06 +0100)
gulp/utils.js

index 91f402f50bb40761d5ca6c7848ecd43b64c5c525..72dbd3e9cd7807e68a830d6c943eaf7de85081df 100644 (file)
@@ -5,10 +5,10 @@ function arrayClear(array) {
 /**
  * Return the import path/name of an UMD module for the given module format.
  *
- * @param {string} name - name of the module, used if other no import path/name can be found.
+ * @param {string} name - name of the module, used if no other no import path/name can be found.
  * @param {object|string} config - external configuration.
- *  - If a path/name string, used as it.
- *  - If an object, use the property within it according to the given `format`,
+ *  - If a string, returns it (we consider this is the path or name).
+ *  - If an object, returns the property within it according to the given `format`,
  *    or the "default" property.
  * @param {string} format - format of the module to look for, if the configuration is an object.
  *