File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var CoreObject = require('core-object');
22var fs = require ( 'fs' ) ;
33var path = require ( 'path' ) ;
44var minimatch = require ( 'minimatch' ) ;
5- var Fingerprint = require ( 'broccoli-asset-rev/lib/fingerprint ' ) ;
5+ var crypto = require ( 'crypto ' ) ;
66var Promise = require ( 'ember-cli/lib/ext/promise' ) ;
77
88var denodeify = require ( 'rsvp' ) . denodeify ;
@@ -29,8 +29,7 @@ module.exports = CoreObject.extend({
2929
3030 return readFile ( filePath )
3131 . then ( function ( contents ) {
32- fingerprint = new Fingerprint ( ) ;
33- return fingerprint . hashFn ( contents . toString ( ) ) ;
32+ return md5Hash ( contents . toString ( ) ) ;
3433 } )
3534 } ,
3635
@@ -42,3 +41,9 @@ module.exports = CoreObject.extend({
4241 return config [ key ] ;
4342 }
4443} ) ;
44+
45+ function md5Hash ( buf ) {
46+ var md5 = crypto . createHash ( 'md5' ) ;
47+ md5 . update ( buf ) ;
48+ return md5 . digest ( 'hex' ) ;
49+ }
You can’t perform that action at this time.
0 commit comments