nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -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;