mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
79016032ea
* scaffolding chalk * update button
23 lines
557 B
JavaScript
23 lines
557 B
JavaScript
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,
|
|
externals: config.externals
|
|
});
|
|
|
|
cooking.add('output.filename', 'element-ui.common.js');
|
|
cooking.add('loader.js.exclude', config.jsexclude);
|
|
cooking.add('loader.scss', {
|
|
test: /\.scss$/,
|
|
loaders: ['style-loader', 'css-loader', 'sass-loader']
|
|
});
|
|
cooking.add('vue.preserveWhitespace', false);
|
|
module.exports = cooking.resolve();
|