vue cli4打包白屏?


vue cli4打包白屏?

vue cli4 打包dist文件后进入index.html白屏的解决方法:

打包前要在vue.config.js里面写一句:

module.exports = defineConfig({

transpileDependencies: true,

publicPath: "./",

})


再npm run build重新打包就不会白屏了

vue
发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章