【发布时间】:2013-04-14 04:20:45
【问题描述】:
鉴于这个简单的设置:
concat: {
options: {
stripBanners: false,
separator: '\n/* path to js file */\n'
},
dist: {
src: ['js/*.js'],
dest: 'dist/<%= pkg.name %>-concat.js'
}
}
有没有办法在每个分隔符中动态包含连接路径?
理想的串联文件应该是:
/* js/file1.js */
var someFunction = function(){
}
/* js/file2.js */
var anotherFunction = function(){
}
我是 Grunt 的新手,欢迎提出任何想法。
谢谢,
Seb.
【问题讨论】:
标签: javascript gruntjs