vant/build/webpack.build.js
2017-03-03 10:20:55 +08:00

20 lines
278 B
JavaScript

var config = require('./webpack.config.js');
config.entry = {
'zanui': './src/index.js'
};
config.output = {
filename: './lib/[name].js',
library: 'zanui',
libraryTarget: 'umd'
};
config.externals = {
vue: 'vue'
};
delete config.devtool;
module.exports = config;