vue打包出现白屏怎么解决?

只需要在vue.config.js里面配置以下代码即可
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
    publicPath:process.env.NODE_ENV==='production'?'./':'/'
})
posted @ 2022-05-17 18:35  一个搞前端的  阅读(290)  评论(0)    收藏  举报