Last active
December 17, 2015 13:28
-
-
Save rsvalerio/5616923 to your computer and use it in GitHub Desktop.
gruntfile config replace version number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, | |
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