mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
23 lines
457 B
JavaScript
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'
|
|
}
|
|
}
|
|
});
|