mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 05:38:24 +08:00
18 lines
405 B
JavaScript
18 lines
405 B
JavaScript
var path = require('path');
|
|
var config = require('./config');
|
|
|
|
module.exports = function(context, moduleName, entry) {
|
|
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 }
|
|
};
|
|
};
|