vant/build/webpack.components.js
Yao 242c06ecf4 use vue in amd & commonjs, use Vue in root (#4)
* change require vue to Vue && waterfall.md

* use vue in amd & commonjs, use Vue in root
2017-04-23 13:44:56 +08:00

25 lines
421 B
JavaScript

var path = require('path');
var Components = require('../components.json');
var config = require('./webpack.build.js');
delete config.devtool;
config.entry = Components;
config.externals = {
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
};
config.output = {
path: path.join(__dirname, '../lib'),
filename: '[name].js',
libraryTarget: 'umd'
};
module.exports = config;