This plugin is originated from here. Bryan Huang (I specify the name of the person to blame.) modified it to serve the purposes of both browser caching javascript files and free up CDN space. We plan to use filename{hash_code} for version controlling instead of copying everything to CDN after every jenkin jobs that jacks up spaces in CDN. We only replace the hash code that is different from the previous version.
generate a hashMap js script which exports a filepath: {hash_code}
map:
{
"hotkey_emoticon_map.js": ".1a849810b01e81a43fedd7b6e4d7a81",
"main.js": "0c9eaf8c88f5045b2db989bc54ef44c2",
"mig33_backbone.js": "f7be238c619ca5e4d15b8a7b01ce48c7",
...
}
assetFingerprint: {
"options": {
"manifestPath": "dist/hashMap.js" // generates hashMap.js to dist folder.
"manifestNoPath": true // only keep the hash part of the filename
},
"dist": {
"files": [
{
"expand": true,
"cwd": "app/scripts",
"src": ['**/*.js']
}
]
}
}
no tests are written at the moment.