fix: add custom index.html template with CSS link
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
- 添加 public/index.html 模板文件,确保 CSS 正确引入 - 更新 manifest.json 添加 template 配置 - 完善 vue.config.js 配置 参考 martial-mini 项目的修复方案
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user