UNPKG

@ima/cli

Version:

IMA.js CLI tool to build, develop and work with IMA.js applications.

10 lines (9 loc) 444 B
import { Configuration, RuleSetRule, RuleSetUseItem } from 'webpack'; /** * Recursively finds a reference to a given loader. */ export declare function findLoader(rule: RuleSetRule | RuleSetRule[], loader: string): RuleSetUseItem[] | null; /** * Helper for finding rules with given loader in webpack config. */ export declare function findRules(config: Configuration, testString: string, loader?: string): RuleSetRule[] | RuleSetUseItem[];