UNPKG

laravel-mix-glob

Version:

Laravel mix extension that add support for globs usage with an extensive concise api. For a more natural boosted productivity and dynamic. Configure once and forget about adding the files each time.

3 lines (2 loc) 577 B
"use strict";var o=require("../../Glob/globResolve/index.js"),r=require("../../Utils/Logger/index.js");exports.processArgsGlobCall=function(e,s){if(!e.options?.map)throw new Error("map option of the Glob<EGlobType.args> object is required to map glob files to args");const t=o.globResolve(e.value);return 0===t.length&&r.LOGGER.log("No matched files for the args Glob"),t.forEach((o=>{const r=e.options.map(o);if(!Array.isArray(r))throw new Error("glob.options.map() should return an array that represent args.");s(...r)})),{files:t}}; //# sourceMappingURL=ArgsTypeGlob.js.map