mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
79016032ea
* scaffolding chalk * update button
24 lines
588 B
JavaScript
24 lines
588 B
JavaScript
var cooking = require('cooking');
|
|
var Components = require('../components.json');
|
|
var config = require('./config');
|
|
|
|
cooking.set({
|
|
entry: Components,
|
|
dist: './lib',
|
|
clean: false,
|
|
format: 'cjs',
|
|
extends: ['vue2'],
|
|
minimize: false,
|
|
externals: config.externals,
|
|
alias: config.alias
|
|
});
|
|
|
|
cooking.add('output.filename', '[name].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();
|