Installation
npm install --save @types/webpack-entry-manifest-plugin
Summary
This package contains type definitions for webpack-entry-manifest-plugin (https://github.com/nuintun/webpack-entry-manifest-plugin#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-entry-manifest-plugin.
index.d.ts
import { Plugin } from "webpack";
/**
* Webpack plugin for generating an asset manifest with grouped entry chunks
*/
declare class WebpackEntryManifestPlugin extends Plugin {
name: "WebpackEntryManifestPlugin";
constructor(options?: WebpackEntryManifestPlugin.Options);
}
declare namespace WebpackEntryManifestPlugin {
interface Options {
/**
* Assets manifest filename
* @default 'manifest.json'
*/
filename?: string | undefined;
/**
* Assets path map function
* @default path => path
*/
map?: ((path: string, chunk: string) => string) | undefined;
/**
* Assets path filter function
* @default () => true
*/
filter?: ((path: string, chunk: string) => boolean) | undefined;
/**
* Assets manifest serialize function
* @default manifest => JSON.stringify(manifest)
*/
serialize?: ((manifest: any) => string) | undefined;
}
}
export = WebpackEntryManifestPlugin;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/webpack
Credits
These definitions were written by Piotr Błażejewicz.