原因:因为你的项目文件中有一个 .editorconfig的文件,项目用了requireJS,配置文件中会把带有handlebars/mustache标识的HTML自动转化handlebars/mustache模板,在 settings>editor>file type中可以查看,所以你的浏览器预览就不能用了.
解决方案:
停用 handlebars/mustache plugins 即可
具体操作: settings>plugins>找到handlebars/mustache,把那个勾点掉,提示重启,问题解决。
如果还不行,关闭webstorm,然后以管理员身份运行webstorm。
如果还不行,那可能是防火墙的问题,请看:https://blog.csdn.net/poiuyppp/article/details/80649672