Vue打包后打开html出现空白

309 阅读1分钟

Vue打包后打开html出现空白

1.因路径问题出现空白解决方法

新建一个vue.config.js中配置:

module.exports = { publicPath: process.env.NODE_ENV === 'production' ? './' : '/' }

\