2.2.5 • Published 7 months ago

@types/start-server-webpack-plugin v2.2.5

Weekly downloads
7,932
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/start-server-webpack-plugin

Summary

This package contains type definitions for start-server-webpack-plugin (https://github.com/ericclemmons/start-server-webpack-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/start-server-webpack-plugin.

index.d.ts

// Type definitions for start-server-webpack-plugin 2.2
// Project: https://github.com/ericclemmons/start-server-webpack-plugin
// Definitions by: AGenson <https://github.com/AGenson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import { Plugin, Compiler } from 'webpack';

export = StartServerWebpackPlugin;

declare class StartServerWebpackPlugin extends Plugin {
    constructor(options?: string | StartServerWebpackPlugin.Options);
}

declare namespace StartServerWebpackPlugin {
    interface Options {
        /**
         * Name of the server to start (built asset from webpack).
         * If not provided, the plugin will tell you the available names.
         */
        name?: string | undefined;
        /**
         * Arguments for node.
         * Default: `[]`.
         */
        nodeArgs?: string[] | undefined;
        /**
         * Arguments for the script.
         * Default: `[]`.
         */
        args?: string[] | undefined;
        /**
         * Signal to send for HMR.
         * Default: 'false'.
         */
        signal?: false | true | 'SIGUSR2' | undefined;
        /**
         * Allow typing 'rs' to restart the server.
         * Default: 'true' if in 'development' mode, 'false' otherwise.
         */
        keyboard?: boolean | undefined;
    }
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:32:54 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by AGenson.