Last active
December 21, 2015 00:39
-
-
Save tiegz/6221853 to your computer and use it in GitHub Desktop.
Cross-checking the output of bundled files in Jammit vs Asset pipeline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jammit bundle for 'application.js' expanded into paths | |
Jammit::Packager.new.instance_variable_get(:@packages)[:js][:application][:urls] | |
# Asset Pipeline bundle for 'application.js' expanded into paths | |
Rails.application.assets.find_asset('application.js').to_a.map(&:pathname).map(&:to_s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment