[英]Play reloads application on static assets update in dev mode
How does Play determine a need to reload application (stop + start) in dev mode? Play如何确定需要在开发模式下重新加载应用程序(停止+启动)? I'm confused when Play reloads application on every public or assets change - this takes a lot of time (3-6 seconds) and is absolutely unnecessary.
当Play重新加载每个公共或资产变化的应用程序时我很困惑 - 这需要花费很多时间(3-6秒)并且绝对没有必要。
Is there any way to customize this? 有没有办法定制这个? Is this a bug?
这是一个错误吗?
This is not a bug. 这不是一个错误。 By default Play will compile assets (JS, LESS), but up to recently this was not very performant.
默认情况下,Play会编译资产(JS,LESS),但到目前为止,这并不是非常高效。 As of Play 2.3, the new sbt-web project makes it possible to use
node.js
directly for these operations, which is much faster. 从Play 2.3开始,新的sbt-web项目可以直接将
node.js
用于这些操作,速度更快。
See also the documentation on the topic 另请参阅有关该主题的文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.