【发布时间】:2014-09-22 20:59:44
【问题描述】:
下面是巡线员—— 配置文件 - http://pastebin.com/ZuNzDY8S 申请文件 - http://pastebin.com/rSPdeSME
现在每当我运行命令lineman run 时,我都会收到app.js | vendor.js | plugin.js js 文件按预期放入我生成的文件夹中。
所以在 index.html 文件中我得到了 -
<script src="/js/vendor.js" type="text/javascript"></script>
<script src="/js/app.js" type="text/javascript"></script>
<script src="/js/plugin.js" type="text/javascript"></script>
现在有几个文件我不想缩小并合并为一个,但问题是无法通过 -
引用供应商文件<script src="vendor/plugin/myjsfile.js" type="text/javascript"></script>
这也是合理的,因为 html 现在在生成的文件夹中。
那么我需要在我的配置文件中做些什么来避免少量文件压缩以及如何在我的布局/模板文件中引用这些供应商文件?
【问题讨论】:
标签: javascript node.js angularjs gruntjs linemanjs