mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
build: fix vant-doc webpack config (#4326)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
const path = require('path');
|
||||
const baseWebpackConfig = require('../../../build/webpack.dev');
|
||||
const baseWebpackConfig = require('../../../build/webpack.pkg');
|
||||
|
||||
module.exports = Object.assign(baseWebpackConfig, {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
index: './src/index.js'
|
||||
},
|
||||
@@ -10,13 +9,5 @@ module.exports = Object.assign(baseWebpackConfig, {
|
||||
path: path.resolve(__dirname, '../lib'),
|
||||
filename: '[name].js',
|
||||
libraryTarget: 'commonjs2'
|
||||
},
|
||||
externals: {
|
||||
vue: {
|
||||
root: 'Vue',
|
||||
commonjs: 'vue',
|
||||
commonjs2: 'vue',
|
||||
amd: 'vue'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user