1 Star 0 Fork 12

pywu/vxe-pc-ui

forked from XE/vxe-pc-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2024-06-12 11:39 . releases 4.0.5
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'
}
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 UI',
entry: 'examples/main.ts',
template: 'public/index.html',
filename: 'index.html'
}
},
configureWebpack: {
performance: {
hints: false
},
resolve: {
alias: {
'@': resolve('examples')
}
},
output: {
library: 'VxeUI'
},
externals
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/pywu/vxe-pc-ui.git
git@gitee.com:pywu/vxe-pc-ui.git
pywu
vxe-pc-ui
vxe-pc-ui
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385