码迷,mamicode.com
首页 > Web开发 > 详细

[WebStrom] Cannot detect file change to trigger webpack re-compile

时间:2016-03-20 07:04:20      阅读:474      评论:0      收藏:0      [点我收藏+]

标签:

Working with editors/IDEs supporting “safe write”

Note that many editors support “safe write” feature and have it enabled by default, which makes dev server unable to watch files correctly. “Safe write” means changes are not written directly to original file but to temporary one instead, which is renamed and replaces original file when save operation is completed successfully. This behaviour causes file watcher to lose the track because the original file is removed. In order to prevent this issue, you have to disable “safe write” feature in your editor.

  • VIM - set “:set backupcopy=yes” (see documentation)
  • IntelliJ - Settings -> System Settings -> Synchronization -> disable “safe write” (may differ in various IntelliJ IDEs, but you can still use the search feature)

Link: http://webpack.github.io/docs/webpack-dev-server.html#hot-mode

[WebStrom] Cannot detect file change to trigger webpack re-compile

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5297080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!