element/build/gen-single-config.js

18 lines
405 B
JavaScript
Raw Normal View History

2017-01-23 14:06:01 +08:00
var path = require('path');
var config = require('./config');
module.exports = function(context, moduleName, entry) {
2017-01-23 14:06:01 +08:00
return {
entry: {
index: path.resolve(context, entry || 'index.js')
},
dist: path.resolve(context, 'lib'),
template: false,
format: 'umd',
moduleName: moduleName,
extends: ['vue2'],
alias: config.alias,
externals: { vue: config.vue }
};
};