You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BannerPlugin.d.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * This file was automatically generated.
  3. * DO NOT MODIFY BY HAND.
  4. * Run `yarn special-lint-fix` to update
  5. */
  6. export type BannerPluginArgument =
  7. | BannerPluginOptions
  8. | BannerFunction
  9. | string;
  10. /**
  11. * The banner as function, it will be wrapped in a comment
  12. */
  13. export type BannerFunction = (data: {
  14. hash: string;
  15. chunk: import("../../lib/Chunk");
  16. filename: string;
  17. basename: string;
  18. query: string;
  19. }) => string;
  20. export type Rules = Rule[] | Rule;
  21. export type Rule = RegExp | string;
  22. export interface BannerPluginOptions {
  23. /**
  24. * Specifies the banner
  25. */
  26. banner: BannerFunction | string;
  27. /**
  28. * If true, the banner will only be added to the entry chunks
  29. */
  30. entryOnly?: boolean;
  31. /**
  32. * Exclude all modules matching any of these conditions
  33. */
  34. exclude?: Rules;
  35. /**
  36. * Include all modules matching any of these conditions
  37. */
  38. include?: Rules;
  39. /**
  40. * If true, banner will not be wrapped in a comment
  41. */
  42. raw?: boolean;
  43. /**
  44. * Include all modules that pass test assertion
  45. */
  46. test?: Rules;
  47. }