grunt: record git-revision in index.html
This commit is contained in:
parent
22b49c1a55
commit
071cd3fe69
4 changed files with 27 additions and 2 deletions
|
@ -2,6 +2,11 @@ module.exports = function(grunt) {
|
|||
grunt.config.merge({
|
||||
copy: {
|
||||
html: {
|
||||
options: {
|
||||
process: function (content) {
|
||||
return content.replace("#revision#", grunt.option("gitRevision"))
|
||||
}
|
||||
},
|
||||
src: ["*.html"],
|
||||
expand: true,
|
||||
cwd: "html/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue