1.0.4 • Published 6 months ago

@types/webpack-files-archive-plugin v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/webpack-files-archive-plugin

Summary

This package contains type definitions for webpack-files-archive-plugin (https://github.com/himanshuapril1/webpack-files-archive-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-files-archive-plugin.

index.d.ts

// Type definitions for webpack-files-archive-plugin 1.0
// Project: https://github.com/himanshuapril1/webpack-files-archive-plugin
// Definitions by: Yusuf Ades <https://github.com/yusufades>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />
import type { Compiler } from 'webpack';

declare namespace WebpackFilesArchivePlugin {
    type Formats = 'tar' | 'zip';

    interface Options {
        /**
         * Archive formats to use, can be 'tar' or 'zip'
         */
        format: Formats | Formats[];
        /**
         *  Directory location of files to be archived.
         */
        output?: string;
        /**
         * A different extension to use instead of tar.gz or zip (without leading .)
         */
        ext?: string;
    }
}

declare class WebpackFilesArchivePlugin {
    constructor(options: WebpackFilesArchivePlugin.Options);

    apply(compiler: Compiler): void;
}

export = WebpackFilesArchivePlugin;

Additional Details

Credits

These definitions were written by Yusuf Ades.

1.0.4

6 months ago

1.0.2

8 months ago

1.0.3

7 months ago

1.0.1

2 years ago

1.0.0

2 years ago