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

江寒520/vxe-table
暂停

forked from xuliangzhan/vxe-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2019-08-29 22:02 . update
const path = require('path')
function resolve (dir) {
return path.join(__dirname, '.', dir)
}
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vxe-table/' : '/',
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 表格'
}
},
chainWebpack (config) {
config.resolve.alias
.set('@', resolve('examples'))
config.output
.set('libraryExport', 'default')
.set('library', 'VXETable')
if (process.env.npm_lifecycle_event.indexOf('lib') === 0) {
let XEUtils = {
root: 'XEUtils',
commonjs: 'xe-utils/methods/xe-utils',
commonjs2: 'xe-utils/methods/xe-utils',
amd: 'xe-utils'
}
if (config.has('externals')) {
config.externals
// .set('xe-utils', XEUtils)
.set('xe-utils/methods/xe-utils', XEUtils)
} else {
config
.set('externals', {
// 'xe-utils': XEUtils,
'xe-utils/methods/xe-utils': XEUtils
})
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/boblau/vxe-table.git
git@gitee.com:boblau/vxe-table.git
boblau
vxe-table
vxe-table
master

搜索帮助