broccoli-asset-rev
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -18,3 +18,4 @@ var Fingerprint = require('./fingerprint'); | ||
assetMap: this.assetMap, | ||
extensions: this.fingerprintExtensions | ||
extensions: this.fingerprintExtensions, | ||
exclude: options.fingerprintExclude || [] | ||
}); | ||
@@ -21,0 +22,0 @@ |
@@ -17,2 +17,3 @@ var fs = require('fs'); | ||
this.extensions = options.extensions || []; | ||
this.exclude = options.exclude || []; | ||
} | ||
@@ -23,2 +24,12 @@ | ||
Fingerprint.prototype.canProcessFile = function (relativePath) { | ||
for (var i = 0; i < this.exclude.length; i++) { | ||
if (relativePath.indexOf(this.exclude[i]) !== -1) { | ||
return false; | ||
} | ||
} | ||
return Filter.prototype.canProcessFile.apply(this, arguments); | ||
}; | ||
Fingerprint.prototype.processFile = function (srcDir, destDir, relativePath) { | ||
@@ -25,0 +36,0 @@ var file = fs.readFileSync(srcDir + '/' + relativePath); |
{ | ||
"name": "broccoli-asset-rev", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "broccoli asset revisions (fingerprint)", | ||
@@ -5,0 +5,0 @@ "main": "lib/asset-rev.js", |
@@ -25,2 +25,3 @@ #broccoli-asset-rev | ||
- `fingerprintExtensions` - Default: `['js', 'css', 'png']` - The file types to add md5 checksums. | ||
- `fingerprintExclude` - Default: `[]` - An array of strings. If a filename contains any item in the exclude array, it will not be fingerprinted. | ||
- `replaceExtensions` - Default: `['html', 'css']` - The file types to replace source code with new checksum file names. |
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
5957
94
27