WebpackCompiler.d.ts 480 B

1234567891011121314
  1. import { WebpackCompilation } from './WebpackCompilation';
  2. export interface WebpackCompiler {
  3. hooks: {
  4. compilation: {
  5. tap: (pluginName: string, handler: (compilation: WebpackCompilation) => void) => void;
  6. };
  7. emit: {
  8. tap: (pluginName: string, handler: (compilation: WebpackCompilation) => void) => void;
  9. };
  10. };
  11. context: string;
  12. inputFileSystem: any;
  13. plugin?: (phase: string, callback: Function) => void;
  14. }