|
This feels like a really stupid question but I cant figure out what the transom I have to bridge is: I have a webpack that has sortablejs in it, and I'd like to be able to call sortablejs from the browser's dev tools console, just like i could when I was using jquery, so I can interactively play around with it. how do I do that? my full tech stack is rails and yarn based
|
# ¿ Feb 24, 2024 19:04 |
|
|
# ¿ Apr 29, 2024 14:48 |
|
necrotic posted:
code:
|
# ¿ Feb 24, 2024 19:34 |
|
Ima Computer posted:Alternative method: set a breakpoint in your JS code in a place where where that package is available. When the debugger hits the breakpoint and JS execution is paused, your console will have access to all variables in scope for the currently executing code.
|
# ¿ Feb 25, 2024 16:44 |
|
that's a very neat trick and has managed to dispell a lot of mystery around using node modules in my project that i just hadn't given a poo poo to dive into. now i understand how to grow another piece of my infra. soooo long inline javascript
|
# ¿ Feb 25, 2024 18:43 |