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