DefinitelyTyped/types/purifycss-webpack/index.d.ts
Geoff Garbers 736ae205a3 Add types for purifycss-webpack (#40913)
* Add initial version of purifycss-webpack.

* Fill out test.

* Add recommendations from linter.

* Remove types reference.
2019-12-16 13:16:05 +00:00

28 lines
743 B
TypeScript

// Type definitions for purifycss-webpack 0.7
// Project: https://github.com/webpack-contrib/purifycss-webpack
// Definitions by: Geoff Garbers <https://github.com/garbetjie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as webpack from 'webpack';
declare class PurifyPlugin extends webpack.Plugin {
constructor(options?: PurifyOptions);
}
interface PurifyOptions {
styleExtensions?: string[];
moduleExtensions?: string[];
minimize?: boolean;
paths?: object | string[];
purifyOptions?: {
minify?: boolean,
output?: string | boolean,
info?: boolean,
rejected?: boolean,
whitelist?: string[]
};
verbose?: boolean;
}
export = PurifyPlugin;