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")

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/sprockets.git

cd sprockets

open lib/sprockets/manifest.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--Manifest-compile-for-pr


# Commit to git

git add lib/sprockets/manifest.rbgit commit -m "better docs for Sprockets::Manifest#compile"


# Open pull request

gem 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!