1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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`, 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. 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 The task also generates a `.sprockets-manifest-randomhex.json` (where `randomhex` is
an MD5 hash) that contains a list with all your assets and their respective 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 fingerprints. This is used by the Rails helper methods to avoid handing the
mapping requests back to Sprockets. A typical manifest file looks like: mapping requests back to Sprockets. A typical manifest file looks like: