2016-07-27 14:15:02 +08:00
|
|
|
var cooking = require('cooking');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
cooking.set({
|
|
|
|
entry: {
|
|
|
|
index: path.join(__dirname, 'index.js')
|
|
|
|
},
|
|
|
|
dist: path.join(__dirname, 'lib'),
|
|
|
|
template: false,
|
|
|
|
format: 'umd',
|
|
|
|
moduleName: 'ElSpinner',
|
2016-09-09 11:51:28 +08:00
|
|
|
extends: ['vue2']
|
2016-07-27 14:15:02 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
cooking.add('resolve.alias', {
|
|
|
|
'main': path.join(__dirname, '../../src'),
|
|
|
|
'packages': path.join(__dirname, '../../packages')
|
|
|
|
});
|
|
|
|
|
|
|
|
cooking.add('externals', {
|
|
|
|
vue: {
|
|
|
|
root: 'Vue',
|
|
|
|
commonjs: 'vue',
|
|
|
|
commonjs2: 'vue',
|
|
|
|
amd: 'vue'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = cooking.resolve();
|