简体   繁体   English

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

[英]Play! Framework 2.0 CoffeeScript/Less workflow in 1.2.x

The upcoming version 2.0 of the Play! Play即将推出的2.0版! 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. Framework为CoffeeScript和Less代码提供了一个很好的工作流程,因为相应的文件保存在一个单独的资产文件夹中,并按照Play中常用的生成过程编译为实际的JS / CSS文件。

My question is whether any means of achieving this kind of behavior in 1.2.x versions exists. 我的问题是,是否存在在1.2.x版本中实现此类行为的任何方法。 If not, how would one go about getting it to work in a "play'y" way? 如果没有,怎么会让它以“play'y”的方式工作呢? The latter question probably translates to "How do I hook into the Play build process?". 后一个问题可能会翻译为“我如何加入Play构建过程?”。

There are modules for both LESS and CoffeeScript in Play 1.x. Play 1.x中有LESS和CoffeeScript的模块。 See 看到

http://www.playframework.org/modules/less http://www.playframework.org/modules/less

and

http://www.playframework.org/modules/coffee http://www.playframework.org/modules/coffee

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

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