node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Build Status


grunt-asset-fingerprint works by appending a hash to all asset files. Find and replace is then used to identify references to these assets in your code so that they point at the new fingerprinted assets. Ideally this task works best at the end of the build process.


assetFingerprint: {
  "options": {
    "manifestPath": "dist/assets.json",
    "findAndReplaceFiles": [
    "keepOriginalFiles": false,
    "cdnPrefixForRootPaths": ""
  "dist": {
    "files": [
        "expand": true,
        "cwd": "dist",
        "src": [
        "dest": "dist"

Running Specs

  • clone this repo
  • npm install
  • grunt spec