Closed nickdos closed 7 months ago
All JS functionality is broken due to empty JS source files being generated by asset-pipeline.
E.g. the search.js file on prod looks like:
https://avh.ala.org.au/assets/search-85aba4e8620a55909c734d987515da0d.js
//# sourceMappingURL=search.js.map (function(a){"function"===typeof define&&define.amd?define(a):window.purl=a()})(function(){function a(a,c){a=decodeURI(a);c=u[c?"strict":"loose"].exec(a);a={attr:{},param:{},seg:{}};for(var t=14;t--;)a.attr[p[t]]=c[t]||"";a.param.query=b(a.attr.query);a.param.fragment=b(a.attr.fragment);a.seg.path=a.attr.path.replace(/^\/+|\/+$/g,"").split("/");a.seg.fragment=a.attr.fragment.replace(/^\/+|\/+$/g,"").split("/");a.attr.base=a.attr.host?(a.attr.protocol?a.attr.protocol+"://"+a.attr.host:a.attr.host)+ (a.attr.port?":"+a.attr.port:""):"";return a}function m(a){a=a.tagName;return"undefined"!==typeof a?k[a.toLowerCase()]:a}function q(a,c,t,p){var e=a.shift();if(e){var b=c[t]=c[t]||
whereas test site has:
view-source:https://avh-test.ala.org.au/assets/search-2fa5f7178de360ab8d2ef1914b2b54da.js
//# sourceMappingURL=search.js.map
rest of file is empty.
This issue seems similar: https://github.com/bertramdev/asset-pipeline/issues/101, which suggests upgrading to a newer version of asset-pipeline plugin.
Already tried incrementing asset-pipeline version from 2.14.2 to 2.15.1 but this did not fix the issue.
2.14.2
2.15.1
Ok today.
All JS functionality is broken due to empty JS source files being generated by asset-pipeline.
E.g. the search.js file on prod looks like:
whereas test site has:
rest of file is empty.
This issue seems similar: https://github.com/bertramdev/asset-pipeline/issues/101, which suggests upgrading to a newer version of asset-pipeline plugin.