0.5.7 • Published 6 months ago

@types/webpack-shell-plugin v0.5.7

Weekly downloads
1,523
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for webpack-shell-plugin 0.5
// Project: https://github.com/1337programming/webpack-shell-plugin
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8

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: Mon, 10 Jan 2022 21:01:35 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

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

0.5.7

6 months ago

0.5.6

7 months ago

0.5.5

8 months ago

0.5.4

2 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

4 years ago