We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213226e commit 05174aeCopy full SHA for 05174ae
lib/webpack.js
@@ -13,7 +13,7 @@ const validateSchema = require("./validateSchema");
13
const WebpackOptionsValidationError = require("./WebpackOptionsValidationError");
14
const webpackOptionsSchema = require("../schemas/WebpackOptions.json");
15
const RemovedPluginError = require("./RemovedPluginError");
16
-
+const version = require("../package.json").version;
17
const webpack = (options, callback) => {
18
const webpackOptionsValidationErrors = validateSchema(
19
webpackOptionsSchema,
@@ -60,7 +60,7 @@ const webpack = (options, callback) => {
60
};
61
62
exports = module.exports = webpack;
63
+exports.version = version;
64
webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter;
65
webpack.WebpackOptionsApply = WebpackOptionsApply;
66
webpack.Compiler = Compiler;
0 commit comments