nginx部署vue项目显示空白页
报错提示: index-fbb90c85.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain".
原因: nginx使用容器部署, nginx.conf文件指定引用mime类型文件.
解决方法:
1. 添加 include /etc/nginx/mim.types;
2.重启nginx即可
nginx -t
nginx -s reload