npm.io
0.5.7 • Published 2 years ago

@types/webpack-shell-plugin

Licence
MIT
Version
0.5.7
Deps
3
Size
6 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by Piotr Błażejewicz.