vue 项目打包dist目录下index.html打开空白解决办法
config 文件下面的index.jsbuild: {// Template for index.htmlindex: path.resolve(__dirname, '../dist/index.html'),// PathsassetsRoot: path.resolve(__dirname, '../dist'),assetsSub...
·
config 文件下面的index.js
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
<!-->这里写./<-->
assetsPublicPath: './',
```
更多推荐
已为社区贡献2条内容
所有评论(0)