"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = webpackBuild;

var _webpack = require("webpack");

var _webpackConfig = _interopRequireDefault(require("./webpackConfig"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function webpackBuild(options) {
  const config = (0, _webpackConfig.default)(options);
  console.log('webpackBuild');
  (0, _webpack.webpack)(config, (err, stats) => {
    if (err || stats.hasErrors()) {
      // ...
      console.log('err', err);
    } // Done processing

  });
}