Skip to content

Instantly share code, notes, and snippets.

@fedeisas
Created January 26, 2014 01:48
Show Gist options
  • Save fedeisas/8626901 to your computer and use it in GitHub Desktop.
Save fedeisas/8626901 to your computer and use it in GitHub Desktop.
hash: {
options: {
mapping: 'public/assets.json',
flatten: false,
hashLength: 8,
hashFunction: function(source, encoding) {
return require('crypto').createHash('sha1').update(source, encoding).digest('hex');
}
},
js: {
options: {
srcBasePath: 'public/js/',
destBasePath: 'public/js/'
},
src: 'public/js/*.js',
dest: 'public/js/'
},
css: {
options: {
srcBasePath: 'public/css/',
destBasePath: 'public/css/'
},
src: 'public/css/*.css',
dest: 'public/css/'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment