2016-09-26 11:01:53 +00:00
|
|
|
var cooking = require('cooking');
|
|
|
|
var config = require('./config');
|
|
|
|
|
|
|
|
cooking.set({
|
|
|
|
entry: './src/index.js',
|
|
|
|
dist: './lib',
|
|
|
|
clean: false,
|
|
|
|
format: 'umd',
|
|
|
|
moduleName: 'ELEMENT',
|
|
|
|
extends: ['vue2'],
|
|
|
|
alias: config.alias,
|
2016-10-17 09:47:24 +00:00
|
|
|
externals: { vue: config.vue }
|
2016-09-26 11:01:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
cooking.add('output.filename', 'index.js');
|
|
|
|
cooking.add('loader.js.exclude', config.jsexclude);
|
2017-08-23 10:07:14 +00:00
|
|
|
cooking.add('loader.scss', {
|
|
|
|
test: /\.scss$/,
|
|
|
|
loaders: ['style-loader', 'css-loader', 'sass-loader']
|
|
|
|
});
|
2016-10-21 16:45:18 +00:00
|
|
|
cooking.add('vue.preserveWhitespace', false);
|
2016-09-26 11:01:53 +00:00
|
|
|
module.exports = cooking.resolve();
|