grunt: record git-revision in index.html

This commit is contained in:
Nils Schneider 2015-04-19 12:55:14 +02:00
commit 071cd3fe69
4 changed files with 27 additions and 2 deletions

View file

@ -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/",