0.4.0 • Published 3 years ago

grunt-asset-fingerprint v0.4.0

Weekly downloads
564
License
-
Repository
github
Last release
3 years ago

grunt-asset-fingerprint

Build Status

Overview

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.

Config

assetFingerprint: {
  "options": {
    "manifestPath": "dist/assets.json",
    "findAndReplaceFiles": [
      "dist/**/*.{js,css,html,xml}"
    ],
    "keepOriginalFiles": false,
    "cdnPrefixForRootPaths": "https://cdn.domain.com"
  },
  "dist": {
    "files": [
      {
        "expand": true,
        "cwd": "dist",
        "src": [
          "img/**/*",
          "webfonts/**/*",
          "js/app.js",
          "css/app.css"
        ],
        "dest": "dist"
      }
    ]
  }
}

Running Specs

  • clone this repo
  • npm install
  • grunt spec
0.3.2

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

7 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago