You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using JQuery among other things and when I do assets precompile with Uglify disabled, I get the Jquery code declared at the very top of the outputted application JS code (as expected)
After precompilation is completed, now my application's utilities JS code (which is dependent on Jquery) appears at the top of the outputted precompiled JS code and this causes my application to fail (unable to find Jquery declared)
Is this possibly an issue with sprockets/uglifier working together? Why would uglifier shuffle the order of the JS code to not match application.js ordering?
The text was updated successfully, but these errors were encountered:
Rails 4.2.11 project
I'm using JQuery among other things and when I do assets precompile with Uglify disabled, I get the Jquery code declared at the very top of the outputted application JS code (as expected)
However, when I enable uglify
After precompilation is completed, now my application's utilities JS code (which is dependent on Jquery) appears at the top of the outputted precompiled JS code and this causes my application to fail (unable to find Jquery declared)
Is this possibly an issue with sprockets/uglifier working together? Why would uglifier shuffle the order of the JS code to not match
application.js
ordering?The text was updated successfully, but these errors were encountered: