broccoli-asset-rev
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -20,2 +20,3 @@ var Fingerprint = require('./fingerprint'); | ||
this.prepend = options.prepend || ''; | ||
this.ignore = options.ignore; | ||
this.description = options.description; | ||
@@ -22,0 +23,0 @@ |
@@ -74,3 +74,3 @@ var fs = require('fs'); | ||
} else { | ||
hash = this.hashFn(file); | ||
hash = this.hashFn(file, tmpPath); | ||
} | ||
@@ -77,0 +77,0 @@ |
{ | ||
"name": "broccoli-asset-rev", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "broccoli asset revisions (fingerprint)", | ||
@@ -5,0 +5,0 @@ "main": "lib/asset-rev.js", |
@@ -45,3 +45,3 @@ #broccoli-asset-rev | ||
- `generateRailsManifest` - Default: none - If true, will generate a `manifest.json` to be used by Sprockets for the Rails Asset Pipeline. The manifest will be fingerprinted by default but this can be avoided by adding `'manifest.json'` to the `exclude` list. | ||
- `customHash` - Default: none - If set, overrides the md5 checksum calculation with the result of calling `customHash(buffer)`. If it is not a `function`, `customHash` is used as the hash value. | ||
- `customHash` - Default: none - If set, overrides the md5 checksum calculation with the result of calling `customHash(buffer)`. If it is not a `function`, `customHash` is used as the hash value. If it is set to `null`, fingerprinting is skipped and only prepending occurs. | ||
- `generateAssetMap` - Default: false. If true, will generate a `assetMap.json` file in a `assets` directory on the output tree. This file contains a mapping of the original asset name to the fingerprinted asset, like the following: | ||
@@ -53,3 +53,4 @@ | ||
css/file1.css: css/file1-sdaa7d6a87d6ada78ds.css, | ||
images/image1.png: images/image1-sdaa7d6a87d6ada78ds.css, } | ||
images/image1.png: images/image1-sdaa7d6a87d6ada78ds.css, | ||
} | ||
} | ||
@@ -56,0 +57,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49872
497
75