DefinitelyTyped/types/webpack-dotenv-plugin/index.d.ts
2018-02-12 17:52:36 +01:00

24 lines
670 B
TypeScript

// Type definitions for webpack-dotenv-plugin 2.0
// Project: https://github.com/nwinch/webpack-dotenv-plugin#readme
// Definitions by: Michael Strobel <https://github.com/kryops>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import * as webpack from 'webpack';
declare namespace WebpackDotenvPlugin {
interface Options {
path?: string;
sample?: string;
silent?: boolean;
encoding?: string;
allowEmptyValues?: boolean;
}
}
declare class WebpackDotenvPlugin extends webpack.Plugin {
constructor(options?: WebpackDotenvPlugin.Options);
}
export = WebpackDotenvPlugin;