【发布时间】:2014-07-03 22:13:38
【问题描述】:
有没有办法在 gruntfile.js 任务中使用 grunt lodash 模板,这样我就可以使用 .toLowerCase() 之类的函数。下面的 sn-p 不起作用,也许它不起作用,因为我找不到适合这个用例的示例。
copy: {
plugins: {
files: [{
src: ['<%= root %>/<%= dirs.plugins %>/<%= pkg.name.toLowerCase() %>'],
dest: '<%= root %>/<%= dirs.www %>/wp-content/plugins/<%= pkg.name %>',
}]
}
}
【问题讨论】:
标签: javascript json gruntjs lodash