Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Releases: testdouble/grunt-asset-fingerprint

0.2.1

12 Apr 15:39

Choose a tag to compare

  • #5 fixes paths on windows machines

0.2.0

06 Apr 20:31

Choose a tag to compare

  • Adds an option "cdnPrefixForRootPaths" when set to a string (e.g. "http://cdn.testdouble.com"), then any absolute references to resources will have the CDN prefixed onto them at find-and-replace time.

0.1.3

21 Feb 04:32

Choose a tag to compare

  • Fixes #3

0.1.2

03 Feb 23:34

Choose a tag to compare

  • Now replaces all references to a given resource in a file, not just the first one.

0.1.1

02 Feb 18:16

Choose a tag to compare

#2 - general project cleanup

0.1.0

29 Jan 06:44

Choose a tag to compare

  • add a findAndReplaceFiles glob option. When set, any matches will
    have the logical path for each fingerprinted-file-so-far replaced with
    the fingerprinted path. This allows the user to carefully order
    things so that files that reference other files can be sure to come after
    them in the process. non-fingerprinted files (like HTML templates) can
    have the search and replace performed on them as well.
  • add a keepOriginalFiles option. Defaults to true.
  • pretty prints asset manifest

Example config:

    assetFingerprint:
      options:
        findAndReplaceFiles: ["dist/**/*.js", "dist/**/*.css", "dist/**/*.html", "dist/**/*.xml"]
        keepOriginalFiles: false