cli-plugin.d.ts 668 B

123456789101112131415161718192021
  1. import { type Compiler } from "webpack";
  2. interface CLIPluginOptions {
  3. isMultiCompiler?: boolean;
  4. configPath?: string[];
  5. helpfulOutput: boolean;
  6. hot?: boolean | "only";
  7. progress?: boolean | "profile";
  8. prefetch?: string;
  9. analyze?: boolean;
  10. }
  11. export default class CLIPlugin {
  12. #private;
  13. logger: ReturnType<Compiler["getInfrastructureLogger"]>;
  14. options: CLIPluginOptions;
  15. constructor(options: CLIPluginOptions);
  16. setupBundleAnalyzerPlugin(compiler: Compiler): Promise<void>;
  17. setupProgressPlugin(compiler: Compiler): void;
  18. setupHelpfulOutput(compiler: Compiler): void;
  19. apply(compiler: Compiler): void;
  20. }
  21. export {};