玩! 1.2.x 中的 Framework 2.0 CoffeeScript/Less 工作流程
即将推出的 Play 2.0 版本! Framework 为 CoffeeScript 和 Less 代码提供了一个很好的工作流程,因为各个文件都保存在单独的资源文件夹中,并按照 Play 中使用的构建过程编译为实际的 JS/CSS 文件。
我的问题是在 1.2.x 版本中是否存在实现这种行为的方法。如果没有,如何让它以一种“好玩”的方式工作?后一个问题可能翻译为“如何挂钩 Play 构建过程?”。
The upcoming version 2.0 of the Play! Framework offers a great workflow for CoffeeScript and Less code in that respective files are kept in a separate asset folder and compiled to the actual JS/CSS files following the build process one is used to in Play.
My question is whether any means of achieving this kind of behavior in 1.2.x versions exists. If not, how would one go about getting it to work in a "play'y" way? The latter question probably translates to "How do I hook into the Play build process?".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Play 1.x 中有适用于 LESS 和 CoffeeScript 的模块。请参阅
http://www.playframework.org/modules/less
和
http://www.playframework.org/modules/coffee
There are modules for both LESS and CoffeeScript in Play 1.x. See
http://www.playframework.org/modules/less
and
http://www.playframework.org/modules/coffee