vue cli3 打包后访问不到页面 Failed to load resource: the server responded with a status of 404 (Not Found)
在根目录下新建文件vue.config.js配置打包资源路径:默认是“./”,如果没有特殊需求就不要修改代码如下:const path = require('path')function resolve(dir) { return path.join(__dirname, dir)}module.exports = { publicPath: './static', //这个路径根据自己的情况定,默认就填"./",因为我静态资源的路径必须要在...