vant/build/config.js
2016-12-27 20:11:05 +08:00

31 lines
759 B
JavaScript

var Components = require('../components.json');
var path = require('path');
var dependencies = require('../package.json').dependencies;
var externals = {};
Object.keys(Components).forEach(function(key) {
externals[`oxygen/packages/${key}/index.js`] = `oxygen/lib/${key}`;
externals[`oxygen/packages/${key}/style.css`] = `oxygen/lib/${key}/style.css`;
});
Object.keys(dependencies).forEach(function(key) {
externals[key] = key;
});
exports.externals = Object.assign({
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
}, externals);
exports.alias = {
'oxygen': path.join(__dirname, '..'),
'src': path.join(__dirname, '../src')
};
exports.jsexclude = /node_modules|lib/;
exports.extends = ['vue2', 'buble'];