@akumbhare Best bet is to have a client-side file loaded that listens for the action:ajaxify.end hook.
$(window).on('action:ajaxify.end', function(ev, data) { var url = data.url; });SOLVED How do I pack javascript for the acp/ a widget into a single js file?
-
I'm working on fixing the twitch monitor plugin, and so far I got the admin control panel working. My problem is that all the code for the acp is on the folder public/js/acp.js, so I edited that one. But I realized that the code is also on the client/acp folder, and I guess there must be some sort of build process to pack all that folder into a single javascript file. The same thing happens with the widget folder in cient/widget.
I checked to docs and I didn't find anything like that on the plugin documentation, does anyone know what the author could have used to produce those .js files?
-
@v_risalab i figured it out. The acp code uses browserify and the widget code uses webpack!
-
@v_risalab i figured it out. The acp code uses browserify and the widget code uses webpack!