DefinitelyTyped/types/webpack-watched-glob-entries-plugin/index.d.ts
2019-03-03 21:13:02 -06:00

20 lines
777 B
TypeScript

// Type definitions for webpack-watched-glob-entries-plugin 2.1
// Project: https://github.com/Milanzor/webpack-watched-glob-entries-plugin#readme
// Definitions by: Joel Spadin <https://github.com/ChaosinaCan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { IOptions } from 'glob';
import { EntryFunc, Plugin } from 'webpack';
interface PluginOptions {
basename_as_entry_name?: boolean;
}
declare class WebpackWatchedGlobEntries extends Plugin {
static getEntries(globs: string[], globOptions?: IOptions, pluginOptions?: PluginOptions): EntryFunc;
static getFiles(globString: string, globOptions?: IOptions, basename_as_entry_name?: boolean): Record<string, string>;
}
export = WebpackWatchedGlobEntries;