Bump version, add validTargets to options

This commit is contained in:
Ryan Clark
2018-06-21 01:25:13 +01:00
parent 0897921174
commit 584d930c6c
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for webpack-hot-client 3.0
// Type definitions for webpack-hot-client 4.0
// Project: https://github.com/webpack-contrib/webpack-hot-client
// Definitions by: Ryan Clark <https://github.com/rynclark>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -47,5 +47,7 @@ declare namespace WebpackHotClient {
server?: net.Server;
/** Webpack stats configuration */
stats?: webpack.Options.Stats;
/** Valid build targets */
validTargets?: string[];
}
}
@@ -4,3 +4,5 @@ import hot = require('webpack-hot-client');
const compiler = webpack();
hot(compiler, { logLevel: 'info', reload: false });
hot(compiler, { logLevel: 'info', reload: false, validTargets: ['web', 'node'] });