2016-09-08 17:58:21 +08:00
|
|
|
var cooking = require('cooking');
|
2016-09-26 19:01:53 +08:00
|
|
|
var config = require('./config');
|
2016-09-08 17:58:21 +08:00
|
|
|
|
|
|
|
cooking.set({
|
|
|
|
entry: './src/index.js',
|
|
|
|
dist: './lib',
|
|
|
|
clean: false,
|
|
|
|
format: 'cjs',
|
|
|
|
extends: ['vue2'],
|
|
|
|
minimize: false,
|
2016-09-26 19:01:53 +08:00
|
|
|
alias: config.alias,
|
2016-10-14 08:02:18 +08:00
|
|
|
externals: config.externals
|
2016-09-08 17:58:21 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
cooking.add('output.filename', 'element-ui.common.js');
|
2016-09-26 19:01:53 +08:00
|
|
|
cooking.add('loader.js.exclude', config.jsexclude);
|
2016-10-22 00:45:18 +08:00
|
|
|
cooking.add('vue.preserveWhitespace', false);
|
2016-09-08 17:58:21 +08:00
|
|
|
module.exports = cooking.resolve();
|