Files
martial-mini/vue.config.js
DevOps d0b39a0319 修复: API配置和文件下载问题
- 修复生产环境API地址配置 (api.config.js)
- 修复event-rules页面下载文件无后缀问题,H5环境使用a标签download属性

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 13:18:22 +08:00

31 lines
580 B
JavaScript

module.exports = {
outputDir: 'dist/build/h5',
assetsDir: 'static',
publicPath: './',
productionSourceMap: false,
css: {
extract: true
},
devServer: {
host: '0.0.0.0',
port: 8084,
disableHostCheck: true,
proxy: {
'/api': {
target: 'http://localhost:8123',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/api': ''
}
}
}
},
transpileDependencies: [],
chainWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.performance.hints(false)
}
}
}