如何将js文件以自定义的方式与grunt.js结合?

我想要一个基于令牌的search并replacegrunt的function。

喜欢

single:{ input:"./input.js", output:"./output.js", tokens:[{ token:"$1", file:"./file.js" },{ token:"%2", string:"replacement string" },{ token:"!3", file:"./file.txt" }] }, 

从.. grunt-combine https://github.com/mcgaryes/grunt-combine/

这在grunt .4版本中不受支持。 任何类似的图书馆在那里..或用默认的“concat”方法可以我们去这个..?

也许你正在寻找像grunt-replace一样的东西?

从文档:

 replace: { dist: { options: { variables: { 'key': 'value' } } } }