mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Typings for zip-webpack-plugin * Switch to ReadonlyArray for include and exclude options * Fix linting errors * Fix TypeScript version
29 lines
673 B
TypeScript
29 lines
673 B
TypeScript
import * as ZipPlugin from "zip-webpack-plugin";
|
|
|
|
new ZipPlugin();
|
|
|
|
const options: ZipPlugin.Options = {
|
|
include: "include.string",
|
|
exclude: "exclude.string",
|
|
};
|
|
new ZipPlugin(options);
|
|
|
|
new ZipPlugin({
|
|
path: "path",
|
|
filename: "filename",
|
|
extension: "ext",
|
|
pathPrefix: "prefix",
|
|
pathMapper: (assetPath) => `pathMapper/${assetPath}`,
|
|
include: ["include.string", /include\.regexp/],
|
|
exclude: ["exclude.string", /exclude\.regexp/],
|
|
fileOptions: {
|
|
mtime: new Date(),
|
|
mode: parseInt("0100664", 8),
|
|
compress: false,
|
|
forceZip64Format: true,
|
|
},
|
|
zipOptions: {
|
|
forceZip64Format: true,
|
|
}
|
|
});
|