console.log(🍺|
2022-10-06 07:06阅读: 1965评论: 0推荐: 0

vue项目打包后运行index.html,会报错"because its MIME type...

打包后运行index.html,会报错"because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

1.找到config文件夹下的index.js文件,将build下的assetsPublicPath:"/"设置成assetsPublicPath:"./",

2.找到build文件夹 -> utils.js,在里面将加入一句publicPath: '../../'

本文作者:Mahmud(مەھمۇد)

本文链接:https://www.cnblogs.com/mahmud/p/16756957.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   Mahmud(مەھمۇد)  阅读(1965)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.

Not available