[update app] 增加打包APP命令
This commit is contained in:
+1
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user