alpinejs-devtools icon indicating copy to clipboard operation
alpinejs-devtools copied to clipboard

Improve Alpine detection

Open HugoDF opened this issue 4 years ago • 2 comments
trafficstars

Websites using v3 like flutter.dev don't get detected as using Alpine since they're not populating the window.Alpine global.

We could extend the detection functionality by checking if there are elements with x-data attribute that have an initialised Alpine component attached.

HugoDF avatar Nov 21 '21 13:11 HugoDF

This would be good, as the extension doesn't detect Alpine on my site. I guess that is why, as I don't add it to window.Alpine.

coder2000 avatar Dec 12 '21 20:12 coder2000

I was wondering why it disappeared after I switched to the alpine npm package.

I don't mind manually setting alpine as global, a tip in the readme could be useful though.

JeremyJaydan avatar Dec 23 '21 15:12 JeremyJaydan