【发布时间】:2014-03-20 16:46:10
【问题描述】:
我需要能够在 Grunt (grunt-contrib-concat) 中运行多个相同类型的任务。我在下面尝试了几件事,但都没有工作。对如何做到这一点的任何想法表示赞赏。
concat: {
dist: {
src: [
'js/foo1/bar1.js',
'js/foo1/bar2.js'
],
dest: 'js/foo1.js',
src: [
'js/foo2/bar1.js',
'js/foo2/bar2.js'
],
dest: 'js/foo2.js'
}
}
和..
concat: {
dist: {
src: [
'js/foo1/bar1.js',
'js/foo1/bar2.js'
],
dest: 'js/foo1.js'
}
},
concat: {
dist: {
src: [
'js/foo2/bar1.js',
'js/foo2/bar2.js'
],
dest: 'js/foo2.js'
}
}
和..
concat: {
dist: {
src: [
'js/foo1/bar1.js',
'js/foo1/bar2.js'
],
dest: 'js/foo1.js'
},
dist: {
src: [
'js/foo2/bar1.js',
'js/foo2/bar2.js'
],
dest: 'js/foo2.js'
}
}
【问题讨论】:
-
我的问题在这里得到解答:stackoverflow.com/questions/21918202/…
标签: gruntjs grunt-contrib-concat