disable chrome strict MIME type checking on local dev
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a CSS file that my local dev server (webpack) is serving up with apparently the wrong mime type. Refused to apply style from 'http://localhost:10001/font-awesome/css/font-awesome.min.css' because its MIME type ( 'text/html' ) is not a supported stylesheet MIME type , and strict MIME checking is enabled . Is there anyway to disable this? I assume it's a chrome setting. At least for a specific host. Digging into the webpack config, if it doesn't do something basic like this is usually an exercise in frustrating yak shaving.