UNPKG

603 BTypeScriptView Raw
1import type { Compiler } from 'webpack';
2
3/**
4 * The webpack-subresource-integrity plugin.
5 *
6 * @public
7 */
8export declare class SubresourceIntegrityPlugin {
9 private readonly options;
10 /**
11 * Create a new instance.
12 *
13 * @public
14 */
15 constructor(options?: SubresourceIntegrityPluginOptions);
16
17
18
19
20
21
22
23 apply(compiler: Compiler): void;
24}
25
26/**
27 * @public
28 */
29export declare interface SubresourceIntegrityPluginOptions {
30 readonly hashFuncNames?: [string, ...string[]];
31 readonly enabled?: "auto" | true | false;
32 readonly hashLoading?: "eager" | "lazy";
33}
34
35export { }