Installation
npm install --save @types/webpack-shell-plugin
Summary
This package contains type definitions for webpack-shell-plugin (https://github.com/1337programming/webpack-shell-plugin).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-shell-plugin.
index.d.ts
import { Plugin } from "webpack";
declare class WebpackShellPlugin extends Plugin {
constructor(options?: WebpackShellPlugin.Options);
}
declare namespace WebpackShellPlugin {
interface Options {
/**
* scripts to execute on the initial build
* @default []
*/
onBuildStart?: string[] | undefined;
/**
* scripts to execute after files are emitted at the end of the compilation
* @default []
*/
onBuildEnd?: string[] | undefined;
/**
* scripts to execute after webpack process is complete
* @default []
*/
onBuildExit?: string[] | undefined;
/**
* Switch for development environments.
* This causes scripts to execute once.
* Useful for running HMR on webpack-dev-server or webpack watch mode.
* @default true
*/
dev?: boolean | undefined;
/**
* Switches script execution process from spawn to exec.
* If running into problems with spawn, turn this setting on.
* @default false
*/
safe?: boolean | undefined;
/**
* Enable for verbose output
* @deprecated
* @default false
*/
verbose?: boolean | undefined;
}
}
export = WebpackShellPlugin;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/express, @types/webpack, @types/webpack-dev-server
Credits
These definitions were written by Piotr Błażejewicz.