Files
martial-admin-mini/vue.config.js
DevOps 711779dc57 fix: 修复裁判端选手列表数据问题
- score-list添加competitionId参数传递
- 项目筛选改为横向滑动布局
- 修复env.config.js生产环境配置

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 15:45:57 +08:00

42 lines
842 B
JavaScript

module.exports = {
outputDir: 'dist/build/h5',
assetsDir: 'static',
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
productionSourceMap: false,
css: {
extract: true,
sourceMap: false
},
devServer: {
port: 8080,
host: '0.0.0.0',
open: false,
disableHostCheck: true,
overlay: {
warnings: false,
errors: true
},
proxy: {
'/mini': {
target: 'http://localhost:8123',
changeOrigin: true
},
'/martial': {
target: 'http://localhost:8123',
changeOrigin: true
}
}
},
chainWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.performance.hints(false)
}
config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
return options
})
}
}