mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
32 lines
588 B
JavaScript
32 lines
588 B
JavaScript
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: 'ElTabs',
|
|
extractCSS: 'style.css',
|
|
|
|
extends: ['vue', 'saladcss']
|
|
});
|
|
|
|
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();
|