Skip to content

Instantly share code, notes, and snippets.

@rsvalerio
Last active December 17, 2015 13:28
Show Gist options
  • Save rsvalerio/5616923 to your computer and use it in GitHub Desktop.
Save rsvalerio/5616923 to your computer and use it in GitHub Desktop.
gruntfile config replace version number
,
replace: {
app: {
src: ['dist/index.html'],
overwrite: true,
replacements: [{
from: '##build##',
to: 'Version: <%= pkg.version %> Build: <%= grunt.template.today(\'dd/mm/yyyy hh:MM:ss\') %>'
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment