[update app] 增加打包APP命令

This commit is contained in:
danshihao
2024-05-30 15:04:42 +08:00
parent b495205f16
commit c8a1f0b36b
7 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = {
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
productionSourceMap: false,
// 打包app时放开该配置
// publicPath:'./',
publicPath: process.env.VUE_APP_IS_APP === 'true' ? './' : '/',
configureWebpack: config => {
// 生产环境取消 console.log
if (process.env.NODE_ENV === 'production') {