Yes, have a look at grunt-replace. Here's a sample config that would replace the link:
replace: {
options: {
patterns: [{
match: '/@jQueryCDN/g',
replacement: function() {
var jQconf = grunt.file.readJSON('bower_components/jquery/bower.json');
return '//ajax.googleapis.com/ajax/libs/jquery/' + jQconf.version + '/jquery.min.js'
},
expression: true
}]
},
files: {
src: 'static/index.html',
dest: 'build/index.html'
}
}
Then just use @jQueryCDN where you want the path to be inserted. :)