sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::DirectiveProcessor#process_stub_directive
Allows dependency to be excluded from the asset bundle.
The `path` must be a valid asset and may or may not already
be part of the bundle. Once stubbed, it is blacklisted and
can't be brought back by any other `require`.
//= stub "jquery"Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/directive_processor.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--DirectiveProcessor-process_stub_directive-for-pr
# Commit to gitgit add lib/sprockets/directive_processor.rbgit commit -m "better docs for Sprockets::DirectiveProcessor#process_stub_directive"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--DirectiveProcessor-process_stub_directive-for-pr
hub pull-request
# Celebrate!