mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added declarations for start-server-webpack-plugin * Applied standard linting * Update start-server-webpack-plugin - accept string litterals for 'signal' option Co-Authored-By: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com> * Update start-server-webpack-plugin - create parameterless constructor suppport Co-Authored-By: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com> * Update start-server-webpack-plugin - remove redundant typing of 'apply' method Co-Authored-By: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com> * Update start-server-webpack-plugin - remove typescript version as not needed Co-Authored-By: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com> * Update start-server-webpack-plugin - combined constructors Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
21 lines
451 B
TypeScript
21 lines
451 B
TypeScript
import { Configuration } from 'webpack';
|
|
import StartServerWebpackPlugin = require('start-server-webpack-plugin');
|
|
|
|
const c1: Configuration = {
|
|
plugins: [
|
|
new StartServerWebpackPlugin('main.js')
|
|
]
|
|
};
|
|
|
|
const c2: Configuration = {
|
|
plugins: [
|
|
new StartServerWebpackPlugin({
|
|
name: 'main.js',
|
|
nodeArgs: [],
|
|
args: [],
|
|
signal: false,
|
|
keyboard: false
|
|
})
|
|
]
|
|
};
|