const defaults = { clean: true, target: 'app', module: true, formats: 'commonjs,umd,umd-min' } const buildModes = { lib: 'library', wc: 'web component', 'wc-async': 'web component (async)' } const modifyConfig = (config, fn) => { if (Array.isArray(config)) { config.forEach(c => fn(c)) } else { fn(config) } } module.exports = (api, options) => { api.registerCommand('build', { description: 'build for production', usage: 'vue-cli-service build [options] [entry|pattern]', options: { '--mode': `specify env mode (default: production)`, '--dest': `specify output directory (default: ${options.outputDir})`, '--no-module': `build app without generating