简体   繁体   English

玩! 应用程序在coffeescript更改时重新加载

[英]Play! app reloads on change in coffeescript

I recently switched to PlayFramework 2.3. 我最近切换到PlayFramework 2.3。 My application uses CoffeeScript, added by sbt plugin. 我的应用程序使用由sbt插件添加的CoffeeScript。 When my app is running (via 'activator run'), if I touch any of my coffee files and press F5 in browser, then the whole application reloads: 当我的应用程序运行时(通过“激活器运行”),如果我触摸任何咖啡文件并在浏览器中按F5,则整个应用程序将重新加载:

[info] Done updating.

---  Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 4 Scala sources and 2 Java sources to C:\Users\myuserlogin\Work\myappname\target\scala-2.11\classes...
[info] CoffeeScript compiling on 1 source(s)
[info] play - Application started (Dev)
[info] CoffeeScript compiling on 1 source(s)

--- (RELOAD) ---

[info] play - Application started (Dev)

Is there a way to NOT reload whole application, like it was in PlayFramework 2.2 ? 有没有办法像PlayFramework 2.2中那样不重新加载整个应用程序?

This was a bug in 2.3 - https://github.com/playframework/playframework/pull/3105 . 这是2.3中的错误-https: //github.com/playframework/playframework/pull/3105

It has been fixed and hopefully it'll be released as part of 2.3.2, which will hopefully come out this week . 它已经修复,希望可以作为2.3.2的一部分发布,该版本有望在本周发布

Also see this [still open] issue, if you're running into that as well: https://github.com/playframework/playframework/issues/2905 如果您也遇到此问题,也请参阅此[仍然开放]问题: https : //github.com/playframework/playframework/issues/2905

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM