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) • 913 B
JavaScript
;var e=require("debug"),o=require("../helpers/index.js");const s=`${o.isChildProcess()?"child":"master"}:${process.pid}`;const r=o.isJestTest()?{log:console.log.bind(console),err:console.error.bind(console),debug:console.debug.bind(console)}:process.env.NO_LOG||process.env.SILENT_LOG?{log:()=>{},err:()=>{},debug:()=>{}}:{log:e(`MixGlob:${s}`),err:e(`MixGlob:Error:${s}`),debug:e(`MixGlob:debug:${s}`)};exports.LOGGER=r,exports.settingUpLogging=function(){if(process.env.DEBUG){const o=process.env.DEBUG.toLowerCase().trim();"1"!==o&&"true"!==o||(e.enable("MixGlob:*"),console.log("Debug ALLLLLLL is enabled !!!!"))}else e.enable(`MixGlob:${s}, MixGlob:Error`),console.log("Debug is enabled !!!!");["DEBUG_HIDE_DATE","DEBUG_COLORS","DEBUG_DEPTH","DEBUG_SHOW_HIDDEN"].forEach((e=>{const o=e.replace("DEBUG","LOG");process.env[o]&&(process.env[e]=process.env[o])}))};
//# sourceMappingURL=index.js.map