打包出错显示空白页,或者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: ‘./’ 。