fix: add custom index.html template with CSS link
continuous-integration/drone/push Build is passing

- 添加 public/index.html 模板文件,确保 CSS 正确引入
- 更新 manifest.json 添加 template 配置
- 完善 vue.config.js 配置

参考 martial-mini 项目的修复方案
This commit is contained in:
Developer
2025-12-13 13:51:44 +08:00
parent cf3f0bc13b
commit 8c56251d72
3 changed files with 19 additions and 1 deletions
+17
View File
@@ -1,5 +1,22 @@
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)
}
}
}