webpack dev server: addDevServerEntrypoints change options types

This commit is contained in:
Alan
2018-02-14 09:23:21 +01:00
parent 4b5437ecd4
commit a6aea3ab81
2 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ declare class WebpackDevServer {
);
static addDevServerEntrypoints(
webpack: webpack.Compiler | webpack.MultiCompiler,
webpackOptions: webpack.Configuration | webpack.Configuration[],
config: WebpackDevServer.Configuration,
listeningApp?: WebpackDevServer.ListeningApp
): void;

View File

@@ -87,13 +87,13 @@ server.listen(8080, "localhost", () => { });
server.close();
WebpackDevServer.addDevServerEntrypoints(compiler, {
WebpackDevServer.addDevServerEntrypoints(config, {
publicPath: "/assets/",
https: true
});
WebpackDevServer.addDevServerEntrypoints(
compiler,
[config],
{
publicPath: "/assets/",
https: true