1
0
mirror of synced 2025-12-25 07:58:00 +08:00

update docs

This commit is contained in:
xuliangzhan
2021-11-10 22:26:59 +08:00
parent b1cd778dfe
commit cb4ad7c8c5
37 changed files with 70 additions and 6693 deletions

View File

@@ -7,19 +7,13 @@ function resolve (dir) {
process.env.VUE_APP_VXE_TABLE_ENV = 'development'
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vxe-table/v4/' : '/',
outputDir: 'docs',
assetsDir: 'static',
productionSourceMap: false,
pages: {
index: {
entry: 'examples/main.ts',
template: 'public/index.html',
filename: 'index.html',
title: 'vxe-table 4.0+ (Latest)'
filename: 'index.html'
}
},
transpileDependencies: ['highlight.js'],
configureWebpack: {
performance: {
hints: false
@@ -50,28 +44,6 @@ module.exports = {
'xe-utils': XEUtils
})
}
} else {
if (config.has('externals')) {
config.externals
.set('xlsx', 'XLSX')
.set('exceljs', 'ExcelJS')
.set('jspdf', 'jspdf')
.set('jsbarcode', 'JsBarcode')
.set('qrcode', 'QRCode')
.set('dayjs', 'dayjs')
.set('sortablejs', 'Sortable')
} else {
config
.set('externals', {
'xlsx': 'XLSX',
'exceljs': 'ExcelJS',
'jspdf': 'jspdf',
'jsbarcode': 'JsBarcode',
'qrcode': 'QRCode',
'dayjs': 'dayjs',
'sortablejs': 'Sortable'
})
}
}
}
}