UNPKG

kef-builder-buffet

Version:

buffet-builder构建工具

21 lines (18 loc) 615 B
'use strict'; const colors = require('chalk'); /** * 获取 abc.json 文件里指定的 entry 内容 * @param {Objecct} abcConfig abc.json 文件内容 * @return {Object} 如果存在则返回 abc.webpack.entry */ module.exports = function (abcConfig) { abcConfig = abcConfig || {}; if (abcConfig && abcConfig.webpack) { if (abcConfig.webpack.entry) { console.log(colors.yellow('请知晓! 当前编译页面为 abc.json 里指定的 entry !')); var costomEntry = abcConfig.webpack.entry; return costomEntry; } } return null; };