webstrom使用vue-cli时 遇到的一些问题

1、当webstrom 热更新不灵活时,在“File” >> "Settings" >> "Appearance & Behavior" >> "system settings"中,勾掉synchornization以下的最后一项即可(禁止自动保存);

2、npm run build之后文件引入的路径不对时,可尝试修改 config/index.js 的assetsPublicPath('./'或者'/'或者'../'等等);

3、vue项目谷歌浏览器断点打不上,不能调试时, 将#cheap-module-eval-source-map 修改成 #source-map(在config/index.js或者 build/webpack.dev.config.js),或者在需要打断点的地方写上debugger就行了。

原文地址:https://www.cnblogs.com/wjunwei/p/8930977.html