element/build/cooking.common.js

19 lines
448 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: 'cjs',
extends: ['vue2'],
minimize: false,
alias: config.alias,
2016-10-14 08:02:18 +08:00
externals: config.externals
});
cooking.add('output.filename', 'element-ui.common.js');
cooking.add('loader.js.exclude', config.jsexclude);
2016-10-22 00:45:18 +08:00
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();