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) • 576 B
JavaScript
;exports.MixApiManager=class{_mixGlob;_extendedApi;constructor(i){this._mixGlob=i.mixGlob}getExtendedApi(){if(this._extendedApi)return this._extendedApi;const i={},t=t=>{"function"==typeof this._mixGlob.mix[t]?i[t]=(...i)=>(this._mixGlob.processCall(t,i),this._mixGlob.mix):i[t]=this._mixGlob.mix[t]};return Object.getOwnPropertyNames(this._mixGlob.mix).forEach((i=>{t(i)})),Object.getOwnPropertyNames(Object.getPrototypeOf(this._mixGlob.mix)).forEach((i=>{t(i)})),i.mixGlobSettings=()=>this._mixGlob.mix,this._extendedApi=i,i}};
//# sourceMappingURL=index.js.map