forked from ElemeFE/mint-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
34 lines (30 loc) · 859 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var Components = require('../components.json');
var path = require('path');
var dependencies = require('../package.json').dependencies;
var externals = {};
var pkg = {};
Object.keys(Components).forEach(function(key) {
externals[`mint-ui/packages/${key}/index.js`] = `mint-ui/lib/${key}`;
externals[`mint-ui/packages/${key}/style.css`] = `mint-ui/lib/${key}/style.css`;
});
Object.keys(dependencies).forEach(function(key) {
externals[key] = key;
pkg[key] = key;
});
exports.externals = Object.assign({
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
}, externals);
exports.pkg = Object.assign({
vue: 'vue'
}, pkg);
exports.alias = {
'mint-ui': path.join(__dirname, '..'),
'src': path.join(__dirname, '../src')
};
exports.jsexclude = /node_modules|lib/;
exports.extends = ['vue2', 'saladcss', 'buble'];