You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
405 B
17 lines
405 B
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 }
|
|
};
|
|
};
|