UNPKG

977 BTypeScriptView Raw
1import * as webpack from 'webpack';
2export declare namespace WPPlugin {
3 /**
4 * A WebPack Plugin that copies the assets to the static directory
5 */
6 class FrontEndPlugin {
7 constructor(buildDir: string, staticDir: string);
8 apply(compiler: any): void;
9 buildDir: string;
10 staticDir: string;
11 private _first;
12 }
13 /**
14 * A WebPack Plugin that ignores files that are filtered by a callback
15 */
16 class FilterIgnorePlugin extends webpack.IgnorePlugin {
17 constructor(ignored: (path: string) => boolean);
18 checkIgnore(result: any): any | null;
19 ignored: (path: string) => boolean;
20 }
21 /**
22 * A WebPack Plugin that ignores files files that are filtered
23 * by a callback during a `--watch` build
24 */
25 class FilterWatchIgnorePlugin {
26 constructor(ignored: (path: string) => boolean);
27 apply(compiler: any): void;
28 ignored: (path: string) => boolean;
29 }
30}