webpack-subresource-integrity-public.d.ts 603 B

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