1.0.4 • Published 6 months ago
@types/webpack-files-archive-plugin v1.0.4
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
- Last updated: Fri, 13 May 2022 02:31:38 GMT
- Dependencies: @types/webpack, @types/node
- Global values: none
Credits
These definitions were written by Yusuf Ades.