-
I build components for a certain wysiwyg platform and I use alpine.js to power them all. I build my own version of alpine with all the plugins I need. The problem ... Whenever another component developer uses alpine.js also, then 2 copies of alpine.js are loading into the page 😖. When this happens I get errors like below...
Is there a way I can build my version of Alpine so it soes not conflict with other copies? Or just prevent alpine from loading more than once period? I think jQuery does something like this with noConflict? Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You can use a custom prefix for your directives. https://tinytip.co/tips/alpine-prefix |
Beta Was this translation helpful? Give feedback.
-
You can check if could even do it before downloading Alpine... |
Beta Was this translation helpful? Give feedback.
😎