Did you try with this?
function onLoad() { require(['/assets/uploads/readmore.min.js'], function () { console.log('yeah it works'); console.log($('blockquote')); $('blockquote').readmore(); }); } $(document).ready(onLoad); $(window).on('action:ajaxify.end', onLoad);Can I specify different config.json files to use?
-
@wfsaxton said in Can I specify different config.json files to use?:
especially when I accidentally check the development one in.
Actually, you probably shouldn't check
config.json
in-- unless you're using Heroku or something, in which case there's not much you can do.