使用nginx部署vue项目Resource interpreted as Stylesheet but transferred with MIME type text/plain 使用nginx部署vue项目,访问整体样式加载出错; 查看chrome浏览器的console,类似下图 后在网络上查找原因,发现是nginx配置有问题,可参考nginx默认配置,具体配置如下: 清理缓存再次访问即可。