vant/packages/vant-doc/build/webpack.config.js
2019-08-22 20:11:09 +08:00

23 lines
457 B
JavaScript

const path = require('path');
const baseWebpackConfig = require('../../../build/webpack.dev');
module.exports = Object.assign(baseWebpackConfig, {
mode: 'production',
entry: {
index: './src/index.js'
},
output: {
path: path.resolve(__dirname, '../lib'),
filename: '[name].js',
libraryTarget: 'commonjs2'
},
externals: {
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
}
});