mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add initial version of purifycss-webpack. * Fill out test. * Add recommendations from linter. * Remove types reference.
28 lines
743 B
TypeScript
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;
|