Files
AIGC/frontend/vue.config.js
blandarebiter 90b5118e45 perf(backend+frontend): 列表API响应体积优化 3.1MB→145KB (↓95.4%)
- 后端: JPQL构造器投影排除LONGTEXT大字段(uploadedImages/videoReferenceImages)
- 后端: DTO层过滤非分镜图类型的base64内联resultUrl
- 前端: 列表缩略图从video改为img loading=lazy,消除172并发请求
- 前端: download函数增加resultUrl懒加载(详情接口兜底)
- 文档: 新增性能优化报告 docs/performance-optimization-report.md
2026-04-10 18:46:37 +08:00

35 lines
710 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
// 生产/开发环境配置
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
outputDir: 'dist',
assetsDir: 'static',
// 开发服务器配置
devServer: {
port: 8081,
proxy: {
'/api': {
// 开发时代理到本地后端(统一为 localhost:8080
target: 'http://localhost:8080',
changeOrigin: true
// 不要移除 /api 前缀,后端路由以 /api 开头
}
}
},
// 生产环境配置
configureWebpack: {
optimization: {
splitChunks: {
chunks: 'all'
}
}
}
})