Files
martial-admin-mini/vue.config.js
Developer 8c56251d72
All checks were successful
continuous-integration/drone/push Build is passing
fix: add custom index.html template with CSS link
- 添加 public/index.html 模板文件,确保 CSS 正确引入
- 更新 manifest.json 添加 template 配置
- 完善 vue.config.js 配置

参考 martial-mini 项目的修复方案
2025-12-13 13:51:44 +08:00

23 lines
385 B
JavaScript

module.exports = {
// 输出目录
outputDir: 'dist/build/h5',
// 静态资源目录
assetsDir: 'static',
// 生产环境配置
productionSourceMap: false,
// CSS 提取配置
css: {
extract: true
},
chainWebpack: config => {
// 禁用 gzip 大小报告
if (process.env.NODE_ENV === 'production') {
config.performance.hints(false)
}
}
}