Correct docs on naming of sprockets manifest file

Calling this an MD5 implies that it is generated consistently based on some input.
However, this value is [completely random](fbe6e450b6/lib/sprockets/manifest_utils.rb (L11-L24)).
This commit is contained in:
Paul 2018-04-17 12:29:24 -07:00 committed by GitHub
parent 6378a386dd
commit 319248c049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -728,8 +728,8 @@ Rails.application.config.assets.precompile += %w( admin.js admin.css )
NOTE. Always specify an expected compiled filename that ends with `.js` or `.css`,
even if you want to add Sass or CoffeeScript files to the precompile array.
The task also generates a `.sprockets-manifest-md5hash.json` (where `md5hash` is
an MD5 hash) that contains a list with all your assets and their respective
The task also generates a `.sprockets-manifest-randomhex.json` (where `randomhex` is
a 16-byte random hex string) that contains a list with all your assets and their respective
fingerprints. This is used by the Rails helper methods to avoid handing the
mapping requests back to Sprockets. A typical manifest file looks like: