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.

23 lines (22 loc) 1.04 kB
export declare const EXTENSION_FILE_MAPPING: { resolution: RegExp; extension: string; }[]; /** * Resolve file extension following the mapping in src/MixGlob/OutManager/extensionMapping.ts * that is a per extension standard mapping. * @param {string} file file path * @returns {string} file extension after resolution. Can remain the same or be resolved * following the mapping in `src/MixGlob/OutManager/extensionMapping.ts` */ export declare function resolveFileExtension(file: string): string; /** * The function that resolve the files extension following the mix function mapping if provided. * As per `src/MixFunctionSettings/index.ts` * Or fall back to the resolve by the standard file extension mapping as a fallback. * As per `src/MixGlob/OutManager/extensionMapping.ts` * @param {string} srcFile the file to resolve it's extension * @param {string} mixFuncName the mix call function name * @returns */ export declare function resolveExtension(srcFile: string, mixFuncName?: string): string;