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

2.2.5 • Public • Published

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

import { Compiler, Plugin } 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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/webpack

Credits

These definitions were written by AGenson.

Dependents (3)

Package Sidebar

Install

npm i @types/start-server-webpack-plugin

Weekly Downloads

1,136

Version

2.2.5

License

MIT

Unpacked Size

4.9 kB

Total Files

5

Last publish

Collaborators

  • types