Skip to content

Commit

Permalink
Expose schema validator as `webpack.validateSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Nov 2, 2016
1 parent f3040fe commit 2bbd365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ webpack.WebpackOptionsApply = WebpackOptionsApply;
webpack.Compiler = Compiler;
webpack.MultiCompiler = MultiCompiler;
webpack.NodeEnvironmentPlugin = NodeEnvironmentPlugin;
webpack.validate = validateWebpackOptions;
webpack.validate = validateWebpackOptions.bind(this, webpackOptionsSchema);
webpack.validateSchema = validateWebpackOptions;

function exportPlugins(exports, path, plugins) {
plugins.forEach(function(name) {
Expand Down

0 comments on commit 2bbd365

Please sign in to comment.