当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 872

舍得3020 / vxe-table
暂停

forked from xuliangzhan / vxe-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2020-09-19 20:07 . 重构基于 vue3.0
const path = require('path')
function resolve (dir) {
return path.join(__dirname, '.', dir)
}
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vxe-table/v4/' : '/',
outputDir: 'docs',
assetsDir: 'static',
productionSourceMap: false,
configureWebpack: {
performance: {
hints: false
}
},
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html',
title: 'vxe-table 4.x (Latest)'
}
},
transpileDependencies: ['highlight.js'],
chainWebpack (config) {
config.resolve.alias
.set('@', resolve('examples'))
config.output
.set('libraryExport', 'default')
.set('library', 'VXETable')
if (process.env.npm_lifecycle_event && process.env.npm_lifecycle_event.indexOf('lib') === 0) {
const XEUtils = {
root: 'XEUtils',
commonjs: 'xe-utils/ctor',
commonjs2: 'xe-utils/ctor',
amd: 'xe-utils'
}
if (config.has('externals')) {
config.externals
// .set('xe-utils', XEUtils)
.set('xe-utils/ctor', XEUtils)
} else {
config
.set('externals', {
// 'xe-utils': XEUtils,
'xe-utils/ctor': XEUtils
})
}
}
}
}
JavaScript
1
https://gitee.com/275648208/vxe-table.git
git@gitee.com:275648208/vxe-table.git
275648208
vxe-table
vxe-table
master

搜索帮助