Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Adds @sourceURL support to Sprockets
Ruby JavaScript
branch: master

Merge pull request #5 from grosser/home

make it easier to find fixes #3
latest commit 20b1105747
@maccman authored
Failed to load latest commit information.
examples add README
.gitignore first commit
Gemfile first commit better docs
Rakefile add README
sprockets-source.gemspec Merge pull request #5 from grosser/home

Sprockets Source URL

Source URLs are awesome little 'meta comments' that the browser can use for finding the names of scripts. For example:

//@ sourceURL=my/script/name

This means that instead of seeing one compiled file in Chrome's inspector, like this:


You see your whole directory tree:


So much easier to navigate! The alternative to this is to spit out multiple script tags into the page.


Just require sprockets/source_url in development.


Both Chrome and Firefox have @sourceURL support. For more information, please see this excellent post on the subject.

Something went wrong with that request. Please try again.