Javascript 字符串替换的Grunt任务

Javascript 字符串替换的Grunt任务,javascript,replace,gruntjs,task,Javascript,Replace,Gruntjs,Task,我正在搜索一个grunt任务,在这个任务中,我可以用另一个文件中的文本替换文件中的字符串。例如。: 在Grunfile中: ->src:strings.txt/index.html ->dist:index-replaced.html 在strings.txt中: 占位符-1:lorem ipsum。。。。 占位符-2:lorem impsum blabla。。。 在Index.html中: 这里是占位符文本{{placeholder-1}} 在Index-replaced.html中: 下面是

我正在搜索一个grunt任务,在这个任务中,我可以用另一个文件中的文本替换文件中的字符串。例如。: 在Grunfile中: ->src:strings.txt/index.html ->dist:index-replaced.html 在strings.txt中: 占位符-1:lorem ipsum。。。。 占位符-2:lorem impsum blabla。。。 在Index.html中: 这里是占位符文本{{placeholder-1}} 在Index-replaced.html中: 下面是占位符文本lorem ipsum。。。。
如果看到所有这些任务,您可以在gruntfile.js中指定替换项,但这与我的需要不符。有人知道吗?thx

可能重复的不,我不是可能的重复。如上所述:如果看到所有这些任务,您可以在gruntfile.js中指定替换项,但这不符合我的需要。