Can you run rake assets:precompile and use commas in place of semi colons? I ask because i'm running into another issue where my production js asset statements are separated with commas but my staging is separated with semi colons. I was given this project and the old dev quit without any knowledge passed down.
The production code looks something like this but in the minified version (I used pretty print so it's easy to read):
...}
,
$(document).ready(ready),
$(document).on("page:load", ready),
function() {
window.App || (window.App = {}),
App.init = function() {
return $(".classname").select2(),
$("#search").on("keyup", function() {
return searchTable($(this).val())
}),
$("#search-list").on("keyup", function() {
return searchList($(this).val())
}),
$("#my_id").on("change", function() {
return $(this).parent().submit()
}),
$("#preloader").delay(200).fadeOut()
}
,
$(document).on("page:change", function() {
return App.init()
}),
$(window).on("load", function() {
return $("#status").fadeOut(),
$("#preloader").delay(200).fadeOut()
})
}
.call(this),
...
UPDATE: staging environment is running uglifier (4.1.18) and production is running uglifier (3.0.0). Could that be the difference?