UNPKG

@wjunt/webpack-config

Version:

Presets of webpack config

19 lines (18 loc) 507 B
/// <reference types="webpack" /> import { RuleSetRuleWithStrategy } from './common'; export interface UrlRule extends RuleSetRuleWithStrategy { options?: { fallback?: string; limit?: number | boolean; name?: string; }; } /** * Support importing images, also files. * @param rule - Webpack rule merge to url-loader. */ export declare function url(rule?: UrlRule): import("webpack").Configuration & { module: { rules: import("webpack").RuleSetRule[]; }; };