Skip to content

Commit 2bbd365

Browse files
committed
Expose schema validator as `webpack.validateSchema
1 parent f3040fe commit 2bbd365

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/webpack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ webpack.WebpackOptionsApply = WebpackOptionsApply;
5353
webpack.Compiler = Compiler;
5454
webpack.MultiCompiler = MultiCompiler;
5555
webpack.NodeEnvironmentPlugin = NodeEnvironmentPlugin;
56-
webpack.validate = validateWebpackOptions;
56+
webpack.validate = validateWebpackOptions.bind(this, webpackOptionsSchema);
57+
webpack.validateSchema = validateWebpackOptions;
5758

5859
function exportPlugins(exports, path, plugins) {
5960
plugins.forEach(function(name) {

0 commit comments

Comments
 (0)