forked from easy-team/easywebpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
20 lines (18 loc) · 761 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';
const WebpackTool = require('webpack-tool');
exports.WebpackTool = WebpackTool;
exports.webpack = require('webpack');
exports.merge = require('webpack-merge');
exports.Utils = require('./utils/utils');
exports.WebpackBuilder = require('./lib/builder');
exports.WebpackBaseBuilder = require('./lib/base');
exports.WebpackClientBuilder = require('./lib/client');
exports.WebpackServerBuilder = require('./lib/server');
exports.getConfig = config => require('./lib/config')(config);
const webpackTool = new WebpackTool();
exports.build = (webpackConfig, option, callback) => {
webpackTool.build(webpackConfig, option, callback);
};
exports.server = (webpackConfig, option, callback) => {
webpackTool.server(webpackConfig, option, callback);
};