以下是 lineman - 配置文件 - 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 现在位于生成的文件夹中。
那么我需要在我的配置文件中做什么来避免很少的文件压缩以及如何在我的布局/模板文件中引用这些供应商文件?