mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #26219 from rynclark/patch-1
[webpack-serve] optional serve property and correct node api types
This commit is contained in:
Vendored
+2
-2
@@ -16,12 +16,12 @@ export = WebpackServe;
|
||||
|
||||
declare module 'webpack' {
|
||||
interface Configuration {
|
||||
serve: WebpackServe.Options;
|
||||
serve?: WebpackServe.Options;
|
||||
}
|
||||
}
|
||||
|
||||
declare function WebpackServe(
|
||||
{ config }: { config: WebpackServe.Options }
|
||||
{ config }: { config: webpack.Configuration }
|
||||
): Promise<WebpackServe.Instance>;
|
||||
|
||||
declare namespace WebpackServe {
|
||||
|
||||
@@ -5,13 +5,15 @@ const compiler = webpack();
|
||||
|
||||
const server = serve({
|
||||
config: {
|
||||
http2: true,
|
||||
dev: {
|
||||
publicPath: '/',
|
||||
logLevel: 'info'
|
||||
serve: {
|
||||
http2: true,
|
||||
dev: {
|
||||
publicPath: '/',
|
||||
logLevel: 'info'
|
||||
},
|
||||
host: 'localhost'
|
||||
},
|
||||
host: 'localhost'
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
server
|
||||
|
||||
Reference in New Issue
Block a user