UNPKG

packsuit

Version:
27 lines (25 loc) 543 B
const path = require('path'); const PROJECT_FILE = 'unite.config.js'; const PackSuit = require('./PackSuit') function packsuit(config, env = 'dev', callback) { if (!config) { return; } if (typeof config == 'function') { config = config(env); } let { entry, commonJS, root, asset, output = path.resolve('./', 'build/dest'), buildConfig, pages, resolve } = config; const suit = new PackSuit(config); suit.activate(); return suit; } module.exports = packsuit;