nav tabs on admin dashboard
This commit is contained in:
12
node_modules/webpack/lib/webpack.web.js
generated
vendored
12
node_modules/webpack/lib/webpack.web.js
generated
vendored
@@ -9,18 +9,20 @@ const WebEnvironmentPlugin = require("./web/WebEnvironmentPlugin");
|
||||
const WebpackOptionsApply = require("./WebpackOptionsApply");
|
||||
const WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
|
||||
|
||||
function webpack(options, callback) {
|
||||
const webpack = (options, callback) => {
|
||||
new WebpackOptionsDefaulter().process(options);
|
||||
|
||||
const compiler = new Compiler();
|
||||
compiler.options = options;
|
||||
compiler.options = new WebpackOptionsApply().process(options, compiler);
|
||||
new WebEnvironmentPlugin(options.inputFileSystem, options.outputFileSystem).apply(compiler);
|
||||
if(callback) {
|
||||
new WebEnvironmentPlugin(
|
||||
options.inputFileSystem,
|
||||
options.outputFileSystem
|
||||
).apply(compiler);
|
||||
if (callback) {
|
||||
compiler.run(callback);
|
||||
}
|
||||
return compiler;
|
||||
}
|
||||
};
|
||||
module.exports = webpack;
|
||||
|
||||
webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter;
|
||||
|
||||
Reference in New Issue
Block a user