line_push/node_modules/extract-css-chunks-webpack-plugin/index.d.ts
2022-07-21 03:28:35 +00:00

37 lines
958 B
TypeScript

declare module 'extract-css-chunks-webpack-plugin' {
import { ChunkData, Plugin } from 'webpack';
class ExtractCssChunksPlugin extends Plugin {
static loader: string;
constructor(options?: ExtractCssChunksPlugin.PluginOptions);
}
namespace ExtractCssChunksPlugin {
interface PluginOptions {
/**
* The filename of the entry chunk.
*/
filename?: string;
/**
* The filename of non-entry chunks.
*/
chunkFilename?: string;
/**
* Generates a file name (or template) based on chunk data.
*/
moduleFilename?: (chunk: ChunkData) => string;
/**
* Remove warnings about conflicting order.
*/
ignoreOrder?: boolean;
/**
* Inserts `<link>` at the given position (https://github.com/faceyspacey/extract-css-chunks-webpack-pluginn#insert).
*/
insert?: string | Function;
}
}
export = ExtractCssChunksPlugin;
}