简体   繁体   English

有没有办法使用Harp服务器来连接JS和CoffeeScript文件?

[英]Is there a way to concatenate JS and CoffeeScript files using Harp server?

I would like to request /js/app.js from HarpJS server and have it preprocess a folder of coffeescript and javascript. 我想从HarpJS服务器请求/js/app.js,并使其预处理一个coffeescript和javascript文件夹。 For example, say I have: 例如,说我有:

/js/module/a.js
/js/module/b.coffee
/js/module/c.coffee
/js/app.coffee

Is there a way to request /js/app.js such that the response contains the concatenation of /js/module/a.js , of /js/module/b.js . 有没有一种方法可以请求/js/app.js ,使得响应包含/js/module/a.js/js/module/b.js的串联。 and /js/module/c.js responses? /js/module/c.js响应?

I ended up customizing the terraform module, writing a preprocessor called man . 我最终定制了terraform模块,编写了一个名为man的预处理器。

Here is the diff from Harp: https://github.com/sintaxi/terraform/compare/master...thesmart:master 这是Harp的差异: https : //github.com/sintaxi/terraform/compare/master...thesmart : master

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

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