sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Manifest#compile
Compile and write asset to directory. The asset is written to a
fingerprinted filename like
`application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js`. An entry is
also inserted into the manifest file.
compile("application.js")Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/manifest.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Manifest-compile-for-pr
# Commit to gitgit add lib/sprockets/manifest.rbgit commit -m "better docs for Sprockets::Manifest#compile"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--Manifest-compile-for-pr
hub pull-request
# Celebrate!