Vue项目打包报错Failed to load resource: net::ERR_FILE_NOT_FOUND
打包出错显示空白页,或者Failed to load resource: net::ERR_FILE_NOT_FOUND1.webpack.prod.conf.js 中output添加参数publicPath:'./'2.修改webpack.base.conf.js中:publicPath: process.env.NODE_ENV === 'production'?'....
·
打包出错显示空白页,或者Failed to load resource: net::ERR_FILE_NOT_FOUND
1.webpack.prod.conf.js 中output添加参数publicPath:'./'
2.修改webpack.base.conf.js中:
publicPath: process.env.NODE_ENV === 'production'
? './' +config.build.assetsPublicPath
: './' + config.dev.assetsPublicPath
3.
如果还有问题:
找到config文件里面的index.js
修改build里面的assetsPublicPath;
assetsPublicPath: '/',
更多推荐
已为社区贡献6条内容
所有评论(0)