一、问题
执行yarn build之后访问dist文件夹中的index.html文件为空白
二、解决方法
找到config文件夹中的config.ts文件
添加代码
history: {
type: 'hash'
},
publicPath: './',
修改完重新build一下就好了
一、问题
执行yarn build之后访问dist文件夹中的index.html文件为空白
二、解决方法
找到config文件夹中的config.ts文件
添加代码
history: {
type: 'hash'
},
publicPath: './',
修改完重新build一下就好了