UNPKG

crootfast

Version:

大前端工程化命令行脚手架

12 lines (10 loc) 489 B
const { getGlobal } = require("./webPackServer/common/utils"); const cwd = getGlobal('cwd'); const frame = getGlobal('frame'); if (!frame) { throw new Error("babel.config.js >>>>>>>>>> 缺少必要参数或者参数输入不正确,请参考--frame=<frame>"); } const path = `${cwd}/webPackServer/config/${frame}/root.bable.config.js`; const config = require(path); // const config = require(`${global.cwd}/webpackService/configs/${frame}/root.bable.config`); module.exports = config;