@types/webpack-shell-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.5.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/webpack-shell-plugin

Weekly Downloads

446

Version

0.5.7

License

MIT

Unpacked Size

5.67 kB

Total Files

5

Last publish

Collaborators

  • types