Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Nov 3, 2016
1 parent 4ebadcd commit aa4c5a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ var MultiCompiler = require("./MultiCompiler");
var NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");
var WebpackOptionsApply = require("./WebpackOptionsApply");
var WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
var validationSchema = require("./validationSchema");
var validateSchema = require("./validateSchema");
var WebpackOptionsValidationError = require("./WebpackOptionsValidationError");
var webpackOptionsSchema = require("../schemas/webpackOptionsSchema.json");

function webpack(options, callback) {
var webpackOptionsValidationErrors = validationSchema(webpackOptionsSchema, options);
var webpackOptionsValidationErrors = validateSchema(webpackOptionsSchema, options);
if(webpackOptionsValidationErrors.length) {
throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);
}
Expand Down Expand Up @@ -53,8 +53,8 @@ webpack.WebpackOptionsApply = WebpackOptionsApply;
webpack.Compiler = Compiler;
webpack.MultiCompiler = MultiCompiler;
webpack.NodeEnvironmentPlugin = NodeEnvironmentPlugin;
webpack.validate = validationSchema.bind(this, webpackOptionsSchema);
webpack.validateSchema = validationSchema;
webpack.validate = validateSchema.bind(this, webpackOptionsSchema);
webpack.validateSchema = validateSchema;
webpack.WebpackOptionsValidationError = WebpackOptionsValidationError;

function exportPlugins(exports, path, plugins) {
Expand Down

0 comments on commit aa4c5a0

Please sign in to comment.