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.