mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
26 lines
445 B
JavaScript
26 lines
445 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',
|
|
umdNamedDefine: true
|
|
};
|
|
|
|
module.exports = config;
|