chore: add vant-doc package (#4197)

This commit is contained in:
neverland
2019-08-22 20:11:09 +08:00
committed by GitHub
parent f3f3789011
commit eeb65ed922
24 changed files with 1395 additions and 108 deletions
+22
View File
@@ -0,0 +1,22 @@
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'
}
}
});