1 Star 0 Fork 923

dahezi999/vxe-table

forked from xuliangzhan/vxe-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2024-06-13 18:18 . releases 4.7.14
const path = require('path')
const pkg = require('./package.json')
const { defineConfig } = require('@vue/cli-service')
function resolve (dir) {
return path.join(__dirname, '.', dir)
}
process.env.VUE_APP_VXE_VERSION = pkg.version
process.env.VUE_APP_VXE_ENV = 'development'
const externalMaps = {
'xe-utils': 'XEUtils',
'@vxe-ui/core': 'VxeUI'
}
const externals = {}
if (process.env.npm_lifecycle_event && process.env.npm_lifecycle_event.indexOf('lib') === 0) {
for (const key in externalMaps) {
const name = externalMaps[key]
const item = {
root: name,
commonjs: key,
commonjs2: key,
amd: key
}
externals[key] = item
}
}
module.exports = defineConfig({
transpileDependencies: true,
productionSourceMap: false,
pages: {
index: {
title: 'Vxe PC Table',
entry: 'examples/main.ts',
template: 'public/index.html',
filename: 'index.html'
}
},
configureWebpack: {
performance: {
hints: false
},
resolve: {
alias: {
'@': resolve('examples')
}
},
output: {
library: 'VXETable'
},
externals
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/dahezi/vxe-table.git
git@gitee.com:dahezi/vxe-table.git
dahezi
vxe-table
vxe-table
master

搜索帮助