mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 05:38:24 +08:00
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
var cooking = require('cooking');
|
|
var config = require('./config');
|
|
|
|
cooking.set({
|
|
entry: './src/index.js',
|
|
dist: './lib',
|
|
clean: false,
|
|
format: 'umd',
|
|
moduleName: 'ELEMENT',
|
|
extends: ['vue2'],
|
|
alias: config.alias,
|
|
externals: { vue: config.vue }
|
|
});
|
|
|
|
cooking.add('output.filename', 'index.js');
|
|
cooking.add('loader.js.exclude', config.jsexclude);
|
|
cooking.add('vue.preserveWhitespace', false);
|
|
module.exports = cooking.resolve();
|