Watchify + tsify + Visual Studio == stale code

为君一笑 提交于 2019-12-24 10:57:48

问题


We are running a Gulp task inside of Visual Studio (2015) to execute watchify. Works great some of the time, but sometimes watchify builds old code.

Repro:

  • Modify a .ts file in Visual Studio
  • Save
  • In the Task Runner Explorer, watch for watchify output, indicating that it ran (it does)
  • Refresh Chrome/clear cache (I use the "disable caching while debug window is open" option in Chrome)
  • View source in the Chrome Debugger (a little less than half the time, it will be the old code)

Any idea what I need to look for? Note that if I execute a full browserify build, Chrome always sees the new code -- this staleness problem only happens when Watchify is in the mix.

来源:https://stackoverflow.com/questions/43595475/watchify-tsify-visual-studio-stale-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!