mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 12:18:46 +08:00
33 lines
697 B
JavaScript
33 lines
697 B
JavaScript
var cooking = require('cooking');
|
|
var path = require('path');
|
|
|
|
cooking.set({
|
|
entry: './src/index.js',
|
|
dist: './lib',
|
|
clean: false,
|
|
template: false,
|
|
format: 'umd',
|
|
moduleName: 'ELEMENT',
|
|
extractCSS: 'style.css',
|
|
extends: ['vue']
|
|
});
|
|
|
|
cooking.add('output.filename', 'index.js');
|
|
|
|
cooking.add('resolve.alias', {
|
|
'main': path.join(__dirname, '../src'),
|
|
'packages': path.join(__dirname, '../packages'),
|
|
'examples': path.join(__dirname, '../examples')
|
|
});
|
|
|
|
cooking.add('externals.vue', {
|
|
root: 'Vue',
|
|
commonjs: 'vue',
|
|
commonjs2: 'vue',
|
|
amd: 'vue'
|
|
});
|
|
|
|
cooking.add('loader.js.exclude', /node_modules|utils\/popper\.js|util\/fecha.\js/);
|
|
|
|
module.exports = cooking.resolve();
|