玩! 1.2.x 中的 Framework 2.0 CoffeeScript/Less 工作流程

发布于 2024-12-25 08:30:50 字数 216 浏览 6 评论 0原文

即将推出的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不弃不离 2025-01-01 08:30:50

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文