index.d.ts 958 B

123456789101112131415161718192021222324252627282930313233343536
  1. declare module 'extract-css-chunks-webpack-plugin' {
  2. import { ChunkData, Plugin } from 'webpack';
  3. class ExtractCssChunksPlugin extends Plugin {
  4. static loader: string;
  5. constructor(options?: ExtractCssChunksPlugin.PluginOptions);
  6. }
  7. namespace ExtractCssChunksPlugin {
  8. interface PluginOptions {
  9. /**
  10. * The filename of the entry chunk.
  11. */
  12. filename?: string;
  13. /**
  14. * The filename of non-entry chunks.
  15. */
  16. chunkFilename?: string;
  17. /**
  18. * Generates a file name (or template) based on chunk data.
  19. */
  20. moduleFilename?: (chunk: ChunkData) => string;
  21. /**
  22. * Remove warnings about conflicting order.
  23. */
  24. ignoreOrder?: boolean;
  25. /**
  26. * Inserts `<link>` at the given position (https://github.com/faceyspacey/extract-css-chunks-webpack-pluginn#insert).
  27. */
  28. insert?: string | Function;
  29. }
  30. }
  31. export = ExtractCssChunksPlugin;
  32. }