Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【分享】React-Study中的一些实用小技巧 #5

Open
minooo opened this issue Dec 23, 2016 · 0 comments
Open

【分享】React-Study中的一些实用小技巧 #5

minooo opened this issue Dec 23, 2016 · 0 comments

Comments

@minooo
Copy link
Owner

minooo commented Dec 23, 2016

1. windows下使用webstorm时,项目的热更新不灵敏怎么办?

现象:比如修改一个字符,webstorm 往往“感受不到”变化进而无法重编译。
原因:webstorm 默认自动保存,导致有时候手动保存无效
解决:关闭webstorm的自动保存

步骤:

  1. 打开面板
    File -> Settings -> Appearance & Behavior -> System Setting
    如下设置(取消勾选红框内选项)
    image
  2. 如此,自动保存就变为需要手动保存了,为了让每次修改能更显眼,建议让没有被保存的文件有星号提示。设置如下(勾选红框内选项)
    File -> Settings -> Edit -> General -> Editor Tabs
    image
  3. 然后就可以愉快的使用热更新了,此方案是群内小伙伴提供,感谢 @blacker @武汉-小兮

2. npm 下载依赖包很慢怎么办?

果断换用yarn。
这是我对yarn的介绍和配置,很好用,相信我

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant