- score-list添加competitionId参数传递 - 项目筛选改为横向滑动布局 - 修复env.config.js生产环境配置 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
842 B
JavaScript
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
|
|
})
|
|
}
|
|
}
|