element/build/cooking.conf.js

19 lines
400 B
JavaScript
Raw Normal View History

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,
2016-10-17 17:47:24 +08:00
externals: { vue: config.vue }
});
cooking.add('output.filename', 'index.js');
cooking.add('loader.js.exclude', config.jsexclude);
module.exports = cooking.resolve();