UNPKG

608 BTypeScriptView Raw
1import { BaseIncludePlugin, AddDependency } from "./BaseIncludePlugin";
2import * as webpack from 'webpack';
3export declare type Convention = (filename: string) => string;
4export declare class ConventionDependenciesPlugin extends BaseIncludePlugin {
5 private glob;
6 conventions: Convention[];
7 /**
8 * glob: a pattern that filters which files are affected
9 */
10 constructor(glob: string, conventions?: string | Convention | (string | Convention)[]);
11 parser(compilation: webpack.Compilation, parser: webpack.javascript.JavascriptParser, addDependency: AddDependency): void;
12}