element/build/cooking.component.js

24 lines
588 B
JavaScript
Raw Normal View History

var cooking = require('cooking');
var Components = require('../components.json');
var config = require('./config');
cooking.set({
2016-09-27 14:55:37 +08:00
entry: Components,
dist: './lib',
clean: false,
format: 'cjs',
extends: ['vue2'],
minimize: false,
externals: config.externals,
alias: config.alias
});
2016-10-31 09:21:13 +08:00
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']
});
2016-10-22 00:45:18 +08:00
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();