@types/webpack-entry-manifest-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/webpack-entry-manifest-plugin

Weekly Downloads

3

Version

2.0.5

License

MIT

Unpacked Size

4.96 kB

Total Files

5

Last publish

Collaborators

  • types