@aomi/webapp-cli
Version:
a web app cli
15 lines (14 loc) • 392 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCompiler = void 0;
const getWebpackConfig_1 = require("./getWebpackConfig");
const webpack = require("webpack");
/**
* 编译文件
* @param type
*/
function getCompiler(type) {
const config = (0, getWebpackConfig_1.default)(type);
return webpack(config);
}
exports.getCompiler = getCompiler;